Skip to content

Commit 377175d

Browse files
committed
matching: make log level configurable via $LOG_LEVEL_MATCHING
1 parent b62bdb3 commit 377175d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/match.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ const isProgrammerError = (err) => {
4343
const NATS_JETSTREAM_AUS_ISTFAHRT_STREAM_NAME = `AUS_ISTFAHRT_${MAJOR_VERSION}`
4444
const NATS_JETSTREAM_GTFSRT_STREAM_NAME = `GTFS_RT_${MAJOR_VERSION}`
4545

46-
const logger = createLogger('match')
46+
const logger = createLogger('match', {
47+
level: (process.env.LOG_LEVEL_MATCHING || 'warn').toLowerCase(),
48+
})
4749

4850
const abortWithError = (err) => {
4951
logger.error(err)

0 commit comments

Comments
 (0)