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());
|
String result = new String(inputStream.readAllBytes());
|
||||||
|
|
||||||
int exitCode = process.waitFor();
|
int exitCode = process.waitFor();
|
||||||
LOGGER.info("File {} scanned with result: {}", originalFileName, result);
|
|
||||||
|
|
||||||
if (exitCode == 0) {
|
if (exitCode == 0) {
|
||||||
|
LOGGER.debug("File {} scanned with result: {}", originalFileName, result);
|
||||||
checkScanResult(result, originalFileName);
|
checkScanResult(result, originalFileName);
|
||||||
return new ScanResult(
|
return new ScanResult(
|
||||||
null,
|
null,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue