SUPPORT-8841: move logging
This commit is contained in:
parent
f6fea26f85
commit
deeaa0f561
1 changed files with 2 additions and 1 deletions
|
|
@ -66,9 +66,10 @@ public class FileScanService {
|
||||||
|
|
||||||
try (InputStream inputStream = process.getInputStream()) {
|
try (InputStream inputStream = process.getInputStream()) {
|
||||||
String result = new String(inputStream.readAllBytes());
|
String result = new String(inputStream.readAllBytes());
|
||||||
LOGGER.info("File {} scanned with result: {}", originalFileName, result);
|
|
||||||
|
|
||||||
int exitCode = process.waitFor();
|
int exitCode = process.waitFor();
|
||||||
|
|
||||||
|
LOGGER.info("File {} scanned with result: {}", originalFileName, result);
|
||||||
if (exitCode != 0 && exitCode != 72) {
|
if (exitCode != 0 && exitCode != 72) {
|
||||||
throw new AvException(
|
throw new AvException(
|
||||||
"KESL error scanning file: " + originalFileName + ", exit code: " + exitCode);
|
"KESL error scanning file: " + originalFileName + ", exit code: " + exitCode);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue