SUPPORT-8841: log scan result only when exit code is 0
This commit is contained in:
parent
89eb2c29c3
commit
db2e5e51c2
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue