From 5a6c66cb3ee7726e96ef9d9dc6c470e22e5ab8b1 Mon Sep 17 00:00:00 2001 From: kenobi Date: Sun, 25 Jun 2023 01:57:14 +0200 Subject: [PATCH] export newRequestId from logger --- server/logger.ts | 3 +++ 1 file changed, 3 insertions(+) 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 }) => {