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:
1
index.js
1
index.js
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user