Skip to content

Commit 44e856d

Browse files
committed
Fix timestamp prefix format in logs
1 parent c30efbb commit 44e856d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/dataset/logger/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { combine, timestamp, printf, colorize } = winston.format;
77

88
logger.format = combine(
99
colorize(),
10-
timestamp({ format: 'YYYY-MM-DDTHH:MM:SSZ' }),
10+
timestamp({ format: 'YYYY-MM-DDTHH:mm:ssZ' }),
1111
printf(({ level, message, counter, hash, timestamp }) => {
1212
const prefix = counter && hash ? `${counter.toString().padEnd(6)} ${hash.padEnd(40)}` : '';
1313

src/collection-api/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (config.get('@opentermsarchive/engine.logger.sendMailOnError')) {
3030
const logger = winston.createLogger({
3131
format: combine(
3232
colorize(),
33-
timestamp({ format: 'YYYY-MM-DDTHH:MM:SSZ' }),
33+
timestamp({ format: 'YYYY-MM-DDTHH:mm:ssZ' }),
3434
printf(({ level, message, timestamp }) => {
3535
const timestampPrefix = config.get('@opentermsarchive/engine.logger.timestampPrefix') ? `${timestamp} ` : '';
3636

src/logger/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { combine, timestamp, printf, colorize } = winston.format;
88

99
const alignedWithColorsAndTime = combine(
1010
colorize(),
11-
timestamp({ format: 'YYYY-MM-DDTHH:MM:SSZ' }),
11+
timestamp({ format: 'YYYY-MM-DDTHH:mm:ssZ' }),
1212
printf(({ level, message, timestamp, serviceId, termsType, documentId }) => {
1313
const servicePrefix = serviceId && termsType
1414
? `${serviceId}${termsType}${documentId ? `:${documentId}` : ''}`

0 commit comments

Comments
 (0)