Fixing option for console logs

This commit is contained in:
Matias committed 2019-08-18 13:27:46 -03:00
1 parent be4c971334
commit f375195c75
1 file changed
+1 -1
+1 -1
View File
@@ -129,7 +129,7 @@ exports.newDebugLog = function newDebugLog() {
let message = "['" + newDate + "'," + messageId + ",'" + pModule + "','" + pMessage + "']"
let logLine = '\r\n' + message;
if (process.env.INTER_PROCESS_FILES_PATH === "true" || message.indexOf("ERROR") > 0) {
if (process.env.CONSOLE_LOG === "true" || message.indexOf("ERROR") > 0) {
console.log(message)
}