From 76396fed5c40f6de9426a7286192601302053b2c Mon Sep 17 00:00:00 2001 From: cenfun Date: Fri, 28 Jun 2024 19:47:17 +0800 Subject: [PATCH] added env MCR_LOGGING --- lib/utils/util.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/utils/util.js b/lib/utils/util.js index b66f7caf..9b020c6e 100644 --- a/lib/utils/util.js +++ b/lib/utils/util.js @@ -548,6 +548,9 @@ const Util = { info: 'info', debug: 'debug' }; + + level = level || process.env.MCR_LOGGING; + const type = types[level] || types.info; Util.loggingType = type; Util.loggingLevel = Util.loggingLevels[type];