From 3d94ae599e3bf7bc0f42fb4b17c6f1de3d8d80c5 Mon Sep 17 00:00:00 2001 From: Bobby Date: Sat, 23 Apr 2022 05:01:56 +0700 Subject: [PATCH] feat: debug log for clean files --- controllers/uploadController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index f532ab1..f87957d 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -675,6 +675,8 @@ self.assertPassthroughScans = async (req, user, infoMap) => { } else if (info.data.scan.isInfected === null) { logger.log(`[ClamAV]: ${info.data.filename}: Unable to scan`) unableToScan.push(info.data.filename) + } else { + logger.debug(`[ClamAV]: ${info.data.filename}: File is clean`) } } } @@ -722,6 +724,8 @@ self.scanFiles = async (req, user, infoMap) => { } else if (response.isInfected === null) { logger.log(`[ClamAV]: ${info.data.filename}: Unable to scan`) unableToScan.push(info.data.filename) + } else { + logger.debug(`[ClamAV]: ${info.data.filename}: File is clean`) } })).then(() => { if (foundThreats.length) {