Skip to content

Commit 4fb91b4

Browse files
committed
log exceptions
1 parent 4c52628 commit 4fb91b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/lowtuna/jsonblob/core/BlobCleanupConsumer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ public void run() {
5858
}
5959
}
6060
} catch (InterruptedException e) {
61-
e.printStackTrace();
61+
log.warn("Interrupted while trying to poll queue", e);
6262
} catch (JsonParseException e) {
63-
e.printStackTrace();
63+
log.warn("Couldn't parse JSON from BlobMetadataContainer", e);
6464
} catch (JsonMappingException e) {
65-
e.printStackTrace();
65+
log.warn("Couldn't map JSON from BlobMetadataContainer", e);
6666
} catch (IOException e) {
67-
e.printStackTrace();
67+
log.warn("Couldn't read json for BlobMetadataContainer file", e);
6868
}
6969
}
7070
}

0 commit comments

Comments
 (0)