debug.log will now use local timestamp for readability
Massimo Melina committed
May 25, 2022 at 10:49 UTC
6f08d30d9f88903a347ee861438889798881e07b
1 file changed
+1
-1
server/src/log.ts
+1
-1
@@ -119,5 +119,5 @@ export function debugLog(...args: any[]) {
119
debugLogFile = createWriteStream('debug.log', { flags: 'a' })
120
const params = args.map(x =>
121
typeof x === 'string' ? x : JSON.stringify(x)).join(' ')
122
- debugLogFile.write(new Date().toJSON() + ': ' + params + '\n')
122
+ debugLogFile.write(new Date().toLocaleString() + ': ' + params + '\n')
123
}