Skip to content

Commit 84215cf

Browse files
VIA-333 Logger: remove stringify call from Edge runtime (middleware) logs
This is no longer required now that AWS is receiving logs in JSON format
1 parent be04e62 commit 84215cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const pinoLoggerForEdge = () => {
5959
formatters: formatterWithLevelAsText,
6060
write: (logEvent: LogDescriptor) => {
6161
logEvent = { ...logEvent, ...applicationContextFields };
62-
console.log(JSON.stringify(logEvent));
62+
console.log(logEvent);
6363
},
6464
},
6565
});

0 commit comments

Comments
 (0)