diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-08 18:16:15 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-08 18:16:15 +0100 |
commit | 0647f472bc45d82a34e509434c112326499bbe17 (patch) | |
tree | ee1548a10d0c8eba1d3d3efb0d2ef003348aa59b /server/helpers | |
parent | dfecb9003600913f8c3130a87e5b403d6686a55f (diff) | |
download | PeerTube-0647f472bc45d82a34e509434c112326499bbe17.tar.gz PeerTube-0647f472bc45d82a34e509434c112326499bbe17.tar.zst PeerTube-0647f472bc45d82a34e509434c112326499bbe17.zip |
Fix logging timestamp
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/logger.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index a4e5b58a4..e0b904950 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts | |||
@@ -37,7 +37,7 @@ const jsonLoggerFormat = winston.format.printf(info => { | |||
37 | }) | 37 | }) |
38 | 38 | ||
39 | const timestampFormatter = winston.format.timestamp({ | 39 | const timestampFormatter = winston.format.timestamp({ |
40 | format: 'YYYY-MM-dd HH:mm:ss.SSS' | 40 | format: 'YYYY-MM-DD HH:mm:ss.SSS' |
41 | }) | 41 | }) |
42 | const labelFormatter = winston.format.label({ | 42 | const labelFormatter = winston.format.label({ |
43 | label | 43 | label |
@@ -52,7 +52,7 @@ const logger = new winston.createLogger({ | |||
52 | maxsize: 5242880, | 52 | maxsize: 5242880, |
53 | maxFiles: 5, | 53 | maxFiles: 5, |
54 | format: winston.format.combine( | 54 | format: winston.format.combine( |
55 | timestampFormatter, | 55 | winston.format.timestamp(), |
56 | labelFormatter, | 56 | labelFormatter, |
57 | winston.format.splat(), | 57 | winston.format.splat(), |
58 | jsonLoggerFormat | 58 | jsonLoggerFormat |