From: christinaa Date: Wed, 30 Aug 2017 00:26:29 +0000 (-0700) Subject: use the logger instead of printing a useless stacktrace when a TS cannot be converted... X-Git-Url: https://jfr.im/git/irc/rizon/acid.git/commitdiff_plain/066dec99409e5b866ec95a98271fe6c5bf688e5a use the logger instead of printing a useless stacktrace when a TS cannot be converted to an int --- diff --git a/acid/src/main/java/net/rizon/acid/core/Message.java b/acid/src/main/java/net/rizon/acid/core/Message.java index ad54606..61b7190 100644 --- a/acid/src/main/java/net/rizon/acid/core/Message.java +++ b/acid/src/main/java/net/rizon/acid/core/Message.java @@ -42,7 +42,7 @@ public abstract class Message } catch (NumberFormatException ex) { - ex.printStackTrace(); + log.warn("Cannot convert TS value '{}' to an integer, dropping message", newTS); return true; } }