Merge branch 'stable-2.14'

* stable-2.14:
  Fix log compression

Change-Id: I40607c737355007c4e2bdf0c8f174cb08bed5e7c
This commit is contained in:
David Pursehouse
2017-09-28 07:52:11 +02:00

View File

@@ -93,6 +93,7 @@ public class LogFileCompressor implements Runnable {
@Override
public void run() {
try {
if (!Files.isDirectory(logs_dir)) {
return;
}
@@ -105,6 +106,9 @@ public class LogFileCompressor implements Runnable {
} catch (IOException e) {
log.error("Error listing logs to compress in " + logs_dir, e);
}
} catch (Exception e) {
log.error("Failed to compress log files: " + e.getMessage(), e);
}
}
private boolean isLive(Path entry) {