From 0783fd64d0902e0dfcac41d32c651cb224f9f919 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel <34905970+ham1255@users.noreply.github.com> Date: Sat, 26 Dec 2020 15:07:12 +0400 Subject: [PATCH] added debug check when error sending message --- .../net/limework/rediskript/managers/RedisController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/limework/rediskript/managers/RedisController.java b/src/main/java/net/limework/rediskript/managers/RedisController.java index ccc3e5f..5b68658 100644 --- a/src/main/java/net/limework/rediskript/managers/RedisController.java +++ b/src/main/java/net/limework/rediskript/managers/RedisController.java @@ -223,7 +223,9 @@ public class RedisController extends BinaryJedisPubSub implements Runnable { j.publish(channel.getBytes(StandardCharsets.UTF_8), message); } catch (Exception e) { System.out.println("Error sending redis message!"); - e.printStackTrace(); + if (debugMode) { + e.printStackTrace(); + } } });