add diskusage monitor

This commit is contained in:
Joe
2019-01-07 10:33:43 -06:00
parent 8b9b89ccaf
commit 9d5a94d98c
8 changed files with 104 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ const server = micro(async (req, res) => {
let theInputLine=allInputLines[i];
let isWhiteListed = ruleEngine.processData(theInputLine);
let miniInput = jsonminify(JSON.stringify(theInputLine));
let now = Date();
if (isWhiteListed) {
logger.log("debug", "Not Whitelisted: " + miniInput);
fs.appendFileSync("./log/skipped.log", miniInput + "\n");