Fix sticker-creator startup issue
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { noop } from 'lodash';
|
||||
import { LogLevel } from './shared';
|
||||
import { LogFunction } from '../types/Logging';
|
||||
import { LogFunction, LogLevel } from '../types/Logging';
|
||||
|
||||
type LogAtLevelFnType = (
|
||||
level: LogLevel,
|
||||
|
@@ -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<{
|
||||
|
@@ -11,3 +11,14 @@ export type LoggerType = {
|
||||
debug: LogFunction;
|
||||
trace: LogFunction;
|
||||
};
|
||||
|
||||
// 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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user