SUPPORT-8841:

1) add jar encoding utf8
2) change result log to debug
This commit is contained in:
Alexandr Shalaginov 2025-01-14 11:46:05 +03:00
parent deeaa0f561
commit 9ef24f6094
3 changed files with 3 additions and 3 deletions

View file

@ -51,5 +51,5 @@ password:
```
### **2. Запуск JAR-файла с конфигурационным файлом**
```bash
java -jar app.jar --spring.config.location=file:/path/to/your/application.yaml
java -jar app.jar --spring.config.location=file:/path/to/your/application.yaml -Dfile.encoding=UTF8
```

View file

@ -8,7 +8,7 @@ Type=simple
Restart=on-failure
User=root
WorkingDirectory=/opt/av-service
ExecStart=/usr/bin/java -jar av-service.jar
ExecStart=/usr/bin/java -jar av-service.jar -Dfile.encoding=UTF8
[Install]
WantedBy=multi-user.target

View file

@ -69,11 +69,11 @@ public class FileScanService {
int exitCode = process.waitFor();
LOGGER.info("File {} scanned with result: {}", originalFileName, result);
if (exitCode != 0 && exitCode != 72) {
throw new AvException(
"KESL error scanning file: " + originalFileName + ", exit code: " + exitCode);
}
LOGGER.debug("File {} scanned with result: {}", originalFileName, result);
checkScanResult(result, originalFileName);
return exitCode;