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 b15520f commit c9986bbCopy full SHA for c9986bb
backend/src/dal/logs.ts
@@ -32,7 +32,13 @@ async function insertIntoDb(
32
33
if (!important) delete dbLog.important;
34
35
- Logger.info(`${event}\t${uid}\t${JSON.stringify(message)}`);
+ const stringified = JSON.stringify(message);
36
+
37
+ Logger.info(
38
+ `${event}\t${uid}\t${
39
+ stringified.length > 100 ? stringified.slice(0, 100) + "..." : stringified
40
+ }`
41
+ );
42
43
await getLogsCollection().insertOne(dbLog);
44
}
0 commit comments