mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix sticker-creator startup issue
This commit is contained in:
@@ -6,6 +6,9 @@ import { isRecord } from '../util/isRecord';
|
||||
import { redactAll } from '../util/privacy';
|
||||
import { missingCaseError } from '../util/missingCaseError';
|
||||
import { reallyJsonStringify } from '../util/reallyJsonStringify';
|
||||
import { LogLevel } from '../types/Logging';
|
||||
|
||||
export { LogLevel };
|
||||
|
||||
export type FetchLogIpcData = {
|
||||
capabilities: Record<string, unknown>;
|
||||
@@ -30,17 +33,6 @@ export const isFetchLogIpcData = (data: unknown): data is FetchLogIpcData =>
|
||||
isRecord(data.user) &&
|
||||
Array.isArray(data.logEntries);
|
||||
|
||||
// These match [Pino's recommendations][0].
|
||||
// [0]: https://getpino.io/#/docs/api?id=loggerlevels-object
|
||||
export enum LogLevel {
|
||||
Fatal = 60,
|
||||
Error = 50,
|
||||
Warn = 40,
|
||||
Info = 30,
|
||||
Debug = 20,
|
||||
Trace = 10,
|
||||
}
|
||||
|
||||
// These match [Pino's core fields][1].
|
||||
// [1]: https://getpino.io/#/?id=usage
|
||||
export type LogEntryType = Readonly<{
|
||||
|
||||
Reference in New Issue
Block a user