diff --git a/server/logger.ts b/server/logger.ts index 6b53f3b..335439d 100644 --- a/server/logger.ts +++ b/server/logger.ts @@ -1,5 +1,8 @@ import { createLogger, format, transports } from "winston" import { config } from "./configuration" +import { v4 } from "uuid" +export const newRequestId = v4() +export const noGuildId = 'NoGuildId' const printFn = format.printf(({ guildId, level, message, errorCode, requestId, timestamp: logTimestamp }: { [k: string]: string }) => {