Fix sticker-creator startup issue

This commit is contained in:
Fedor Indutny 2021-09-21 12:17:17 -07:00 committed by GitHub
parent 7937280971
commit b64908d01d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 13 deletions

View file

@ -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<{