SUPPORT-8841: move logging

This commit is contained in:
Alexandr Shalaginov 2025-01-13 13:06:23 +03:00
parent f6fea26f85
commit deeaa0f561

View file

@ -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);