Skip to content

Commit

Permalink
log def 2
Browse files Browse the repository at this point in the history
  • Loading branch information
maidh91 committed Nov 8, 2024
1 parent b19b91f commit dc8f261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Logger {
constructor ({ labels, fields, stacks = false, level, pretty = false } = {}) {
labels = constants.PLATFORM_CHANNEL === 'prod' ? (labels ?? '') : 'run,sidecar,session'
fields = constants.PLATFORM_CHANNEL === 'prod' ? (fields ?? '') : 'level,date,time,label,delta'
level = constants.PLATFORM_CHANNEL === 'prod' ? (level ?? 1) : 'DEBUG'
level = constants.PLATFORM_CHANNEL === 'prod' ? (level ?? 2) : 'DEBUG'

fields = this._parseFields(fields)
this._labels = new Set(this._parseLabels(labels))
Expand Down Expand Up @@ -152,7 +152,7 @@ class Logger {
if (level === 'INF' || level === 'INFO' || level === '3') return 3
if (level === 'DBG' || level === 'DEBUG' || level === '4') return 4
if (level === 'TRC' || level === 'TRACE' || level === 'TRA' || level === '5') return 5
return 1
return 2
}

_parseFields (fields) {
Expand Down

0 comments on commit dc8f261

Please sign in to comment.