SUPPORT-8841:
1) add jar encoding utf8 2) change result log to debug
This commit is contained in:
parent
deeaa0f561
commit
9ef24f6094
3 changed files with 3 additions and 3 deletions
|
|
@ -51,5 +51,5 @@ password:
|
||||||
```
|
```
|
||||||
### **2. Запуск JAR-файла с конфигурационным файлом**
|
### **2. Запуск JAR-файла с конфигурационным файлом**
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
||||||
|
|
@ -8,7 +8,7 @@ Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/av-service
|
WorkingDirectory=/opt/av-service
|
||||||
ExecStart=/usr/bin/java -jar av-service.jar
|
ExecStart=/usr/bin/java -jar av-service.jar -Dfile.encoding=UTF8
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
|
|
@ -69,11 +69,11 @@ public class FileScanService {
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
LOGGER.debug("File {} scanned with result: {}", originalFileName, result);
|
||||||
checkScanResult(result, originalFileName);
|
checkScanResult(result, originalFileName);
|
||||||
|
|
||||||
return exitCode;
|
return exitCode;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue