Skip to content

Commit 63ca496

Browse files
fix: logging adjustments
1 parent 692cca6 commit 63ca496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logger/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const logger = winston.createLogger({
3737
format: combine(
3838
timestamp(),
3939
errors({stack: true}),
40-
winston.format.json(),
4140
winston.format((info, opts) => {
4241
const span = trace.getSpan(context.active());
4342
const traceId = span?.spanContext().traceId;
@@ -50,6 +49,7 @@ const logger = winston.createLogger({
5049
}
5150
return info;
5251
})(),
52+
winston.format.json(),
5353
...(process.env.NODE_ENV !== "production" ? [prettyPrint()] : [])
5454
),
5555
transports: [

0 commit comments

Comments
 (0)