Skip to content

Commit

Permalink
added env MCR_LOGGING
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jun 28, 2024
1 parent e49aa01 commit 76396fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/utils/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 76396fe

Please sign in to comment.