Merge branch 'stable-2.14'
* stable-2.14: Fix log compression Change-Id: I40607c737355007c4e2bdf0c8f174cb08bed5e7c
This commit is contained in:
		@@ -93,6 +93,7 @@ public class LogFileCompressor implements Runnable {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  @Override
 | 
					  @Override
 | 
				
			||||||
  public void run() {
 | 
					  public void run() {
 | 
				
			||||||
 | 
					    try {
 | 
				
			||||||
      if (!Files.isDirectory(logs_dir)) {
 | 
					      if (!Files.isDirectory(logs_dir)) {
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@@ -105,6 +106,9 @@ public class LogFileCompressor implements Runnable {
 | 
				
			|||||||
      } catch (IOException e) {
 | 
					      } catch (IOException e) {
 | 
				
			||||||
        log.error("Error listing logs to compress in " + logs_dir, 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) {
 | 
					  private boolean isLive(Path entry) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user