Fixed wrong logging-mode used

f_influx-checks
Ruakij 3 years ago
parent c5e1bb4c64
commit 37b78e7373

@ -43,7 +43,7 @@ function checkWriteApi(influxDb, options){
.catch((err) => {
logger.error("Could not get writeApi:");
logger.error(`Error [${err.code}]:`, err.message);
if(err.code == "not found") logger.fatal("No write-permission?");
if(err.code == "not found") logger.error("No write-permission?");
reject();
}).then((res) => {
logger.debug("Writing ok");

Loading…
Cancel
Save