Skip to content

Commit

Permalink
add env MCR_LOG_TIME
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jun 30, 2024
1 parent 4ade1fd commit 2a1a6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ const Util = {

// time is debug level, fix the log info, for checking snapshot
logTime: (message, time_start) => {
if (Util.loggingLevel < Util.loggingLevels.debug) {
if (Util.loggingLevel < Util.loggingLevels.debug && !process.env.MCR_LOG_TIME) {
return;
}
const duration = Date.now() - time_start;
Expand Down

0 comments on commit 2a1a6ec

Please sign in to comment.