From dc8f261cbb46873a2b8a2604d267283da82ee112 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 8 Nov 2024 19:47:14 +1100 Subject: [PATCH] log def 2 --- lib/logger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logger.js b/lib/logger.js index 145304dce..baaf267f7 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -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)) @@ -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) {