Skip to content

Commit

Permalink
added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Oct 4, 2024
1 parent d27bd98 commit 69a8f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const setLogs = (message: any, type: string) => {

let logMessage;
if (typeof message === 'object') {
logMessage = JSON.stringify(message);
message = JSON.stringify(message);

Check warning on line 42 in src/config/logs.ts

View check run for this annotation

Codecov / codecov/patch

src/config/logs.ts#L42

Added line #L42 was not covered by tests
}

logMessage = `org_id: ${orgId} user_id: ${userId} [${type}] ${message}`;

Check warning on line 45 in src/config/logs.ts

View check run for this annotation

Codecov / codecov/patch

src/config/logs.ts#L45

Added line #L45 was not covered by tests
Expand Down

0 comments on commit 69a8f02

Please sign in to comment.