We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3382400 commit b289d69Copy full SHA for b289d69
src/autify/mobile/mobilelink/mobile-link-manager/Logger.ts
@@ -72,7 +72,17 @@ export const setupMobileLinkOutputLogger = (
72
crlfDelay: Number.POSITIVE_INFINITY,
73
}).on("line", (line) => {
74
try {
75
- callback(JSON.parse(line) as ClientLog);
+ const data = JSON.parse(line);
76
+ const level = data.level;
77
+ const timestamp = data.timestamp;
78
+ delete data.level;
79
+ delete data.timestamp;
80
+ const log: ClientLog = {
81
+ level,
82
+ timestamp,
83
+ message: JSON.stringify(data),
84
+ };
85
+ callback(log);
86
} catch {
87
callback({
88
level: "info",
0 commit comments