Skip to content

Commit

Permalink
** To Squash
Browse files Browse the repository at this point in the history
  • Loading branch information
jamezp committed Jul 25, 2017
1 parent 980bfed commit 12ddcab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@

<!-- Plugin versions -->
<version.org.jboss.apiviz.plugin>1.3.2.GA</version.org.jboss.apiviz.plugin>
<!-- Byteman -->
<byteman.host>127.0.0.1</byteman.host>
<byteman.port>17091</byteman.port>

<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ void rotate(final ErrorManager errorManager, final Path source, final String suf
if (compressionType == CompressionType.GZIP) {
try {
archiveGzip(source, target);
} catch (IOException e) {
} catch (Exception e) {
errorManager.error(String.format("Failed to compress %s to %s. Compressed file may be left on the " +
"filesystem corrupted.", source, target), e, ErrorManager.WRITE_FAILURE);
}
} else if (compressionType == CompressionType.ZIP) {
try {
archiveZip(source, target);
} catch (IOException e) {
} catch (Exception e) {
errorManager.error(String.format("Failed to compress %s to %s. Compressed file may be left on the " +
"filesystem corrupted.", source, target), e, ErrorManager.WRITE_FAILURE);
}
Expand Down Expand Up @@ -216,7 +216,7 @@ void rotate(final ErrorManager errorManager, final Path source, final String suf
final Path lastFile = Paths.get(fileWithSuffix + "." + maxBackupIndex + compressionSuffix);
try {
Files.deleteIfExists(lastFile);
} catch (IOException e) {
} catch (Exception e) {
errorManager.error(String.format("Failed to delete file %s", lastFile), e, ErrorManager.GENERIC_FAILURE);
}
for (int i = maxBackupIndex - 1; i >= 1; i--) {
Expand All @@ -240,7 +240,7 @@ public String toString() {
private void move(final ErrorManager errorManager, final Path src, final Path target) {
try {
Files.move(src, target, StandardCopyOption.REPLACE_EXISTING);
} catch (IOException e) {
} catch (Exception e) {
// Report the error, but allow the rotation to continue
errorManager.error(String.format("Failed to move file %s to %s.", src, target), e, ErrorManager.GENERIC_FAILURE);
}
Expand Down

0 comments on commit 12ddcab

Please sign in to comment.