mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
feat: debug log for clean files
This commit is contained in:
parent
88d32a6dcf
commit
3d94ae599e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user