Skip to content

Commit

Permalink
matching: make log level configurable via $LOG_LEVEL_MATCHING
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Nov 26, 2024
1 parent b62bdb3 commit 377175d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ const isProgrammerError = (err) => {
const NATS_JETSTREAM_AUS_ISTFAHRT_STREAM_NAME = `AUS_ISTFAHRT_${MAJOR_VERSION}`
const NATS_JETSTREAM_GTFSRT_STREAM_NAME = `GTFS_RT_${MAJOR_VERSION}`

const logger = createLogger('match')
const logger = createLogger('match', {
level: (process.env.LOG_LEVEL_MATCHING || 'warn').toLowerCase(),
})

const abortWithError = (err) => {
logger.error(err)
Expand Down

0 comments on commit 377175d

Please sign in to comment.