SUPPORT-8841: log scan result only when exit code is 0

This commit is contained in:
Alexandr Shalaginov 2025-01-14 11:04:00 +03:00
parent 89eb2c29c3
commit db2e5e51c2

View file

@ -70,9 +70,9 @@ public class FileScanService {
String result = new String(inputStream.readAllBytes());
int exitCode = process.waitFor();
LOGGER.info("File {} scanned with result: {}", originalFileName, result);
if (exitCode == 0) {
LOGGER.debug("File {} scanned with result: {}", originalFileName, result);
checkScanResult(result, originalFileName);
return new ScanResult(
null,