Skip to content

Commit

Permalink
Cleanup hostname from bunyan fields in prod logs (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
sausage-todd authored Jan 23, 2024
1 parent 9d67541 commit 904e2ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/libs/logging/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export const getServiceLogger = (): Logger => {
}

serviceLoggerInstance = Bunyan.createLogger(options)
if (!IS_DEV_ENV && !IS_TEST_ENV) {
delete serviceLoggerInstance.fields.hostname
}

return serviceLoggerInstance
}

Expand Down

0 comments on commit 904e2ee

Please sign in to comment.