1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

add a warning on configuration checks

This commit is contained in:
Massimo Candela
2020-07-25 17:21:20 +02:00
parent 1866fe1202
commit 604489b03b

View File

@@ -147,6 +147,7 @@ switch(params._[0]) {
default: // Run monitor
global.DRY_RUN = !!params.t;
if (global.DRY_RUN) console.log("Testing BGPalerter configuration. WARNING: Remove -t option for production monitoring.");
const Worker = require("./src/worker").default;
module.exports = new Worker(params.c, params.d);
}