Skip to content

Commit

Permalink
[SDCISA-13736] Fix bad habits in util/GZIPUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed Jan 3, 2024
1 parent 181fd16 commit 8b7abbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/swisspush/reststorage/util/GZIPUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void compressResource(Vertx vertx, Logger log, byte[] uncompressed
try (GZIPOutputStream os = new GZIPOutputStream(baos)) {
os.write(uncompressedData);
} catch (IOException ioe) {
log.error("Unable to compress resource: " + ioe.getMessage());
log.error("Unable to compress resource: {}", ioe.getMessage());
future.fail(ioe);
// Error, exit
return;
Expand Down Expand Up @@ -69,7 +69,7 @@ public static void decompressResource(Vertx vertx, Logger log, byte[] compressed
baos.close();

} catch (IOException ioe) {
log.error("Unable to decompress resource: " + ioe.getMessage());
log.debug("Unable to decompress resource: {}", ioe.getMessage());
future.fail(ioe);
// Error, exit
return;
Expand Down

0 comments on commit 8b7abbb

Please sign in to comment.