Skip to content

Commit

Permalink
Add extra info to json log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
daneryl committed Jul 5, 2024
1 parent af62ea6 commit c171a61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/log/infoFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const jsonFormatter = (DATABASE_NAME: String) =>
winston.format(addTenant)({ instanceName: DATABASE_NAME }),
winston.format.printf(info =>
JSON.stringify({
application_name: 'Uwazi',
timestamp: info.timestamp,
environment: config.ENVIRONMENT,
tenant: info.tenant,
message: info.message,
tenantError: info.tenantError,
Expand Down

0 comments on commit c171a61

Please sign in to comment.