aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/logger.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts
index 6a02f680a..10e8cabc8 100644
--- a/server/helpers/logger.ts
+++ b/server/helpers/logger.ts
@@ -24,8 +24,9 @@ function keysExcluder (key, value) {
24const loggerFormat = winston.format.printf((info) => { 24const loggerFormat = winston.format.printf((info) => {
25 let additionalInfos = JSON.stringify(info, keysExcluder, 2) 25 let additionalInfos = JSON.stringify(info, keysExcluder, 2)
26 if (additionalInfos === '{}') additionalInfos = '' 26 if (additionalInfos === '{}') additionalInfos = ''
27 else additionalInfos = ' ' + additionalInfos
27 28
28 return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message} ${additionalInfos}` 29 return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message}${additionalInfos}`
29}) 30})
30 31
31const timestampFormatter = winston.format.timestamp({ 32const timestampFormatter = winston.format.timestamp({