diff --git a/logsystem/main.coffee b/logsystem/main.coffee index af68688..6d935ca 100644 --- a/logsystem/main.coffee +++ b/logsystem/main.coffee @@ -36,7 +36,7 @@ exports.incrementError = (id, detalhe="", inc=1) -> when 'legenda' then id = "3" when 'endpoint' then id = "4" else - throw new Error "ID inválido" + console.log("ID inválido") if bloqueante errors["resumo"]["bloqueante"][id] += inc diff --git a/logsystem/main.js b/logsystem/main.js index e05780b..be96fdc 100644 --- a/logsystem/main.js +++ b/logsystem/main.js @@ -17,10 +17,10 @@ exports.incrementError = function(id, detalhe, inc) { var bloqueante, errors, errors_log_path; - if (detalhe === null) { + if (detalhe == null) { detalhe = ""; } - if (inc === null) { + if (inc == null) { inc = 1; } errors_log_path = "./logsystem/errors.log"; @@ -53,7 +53,7 @@ exports.incrementService = function(serviceType, type, inc) { var services, services_log_path; - if (inc === null) { + if (inc == null) { inc = 1; } services_log_path = "./logsystem/services.log"; @@ -68,10 +68,10 @@ exports.updateHealth = function(serviceType, value) { var services, services_log_path; - if (serviceType === null) { + if (serviceType == null) { serviceType = "outros"; } - if (value === null) { + if (value == null) { value = 0; } services_log_path = "./logsystem/services.log"; -- libgit2 0.21.2