Commit 3dbd857a authored by Phyks (Lucas Verney)'s avatar Phyks (Lucas Verney)
Browse files

Homogeneize date formats in log

`morgan` logs in ISO date format, but we were using a custom format for
our own `Logger` class serverside, resulting in mixed formats for the
date prefix of the logs, which was not easy to read.

This commit uses ISO dates everywhere as `morgan` does not support a
custom format that would be compatible with the one we had in `Logger`.
parent 59e862fc
Pipeline #20398 passed with stage
in 2 minutes and 48 seconds
......@@ -46,7 +46,7 @@ export default class Logger {
let text =' ');
let date = moment().utc().format('YYYY-MM-DD hh:mm:ss:SS');
let date = moment().utc().toISOString();
return `[${date}] ${maybeLevel}${maybePrefix}${text}`;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment