added debug check when error sending message

This commit is contained in:
mohammed jasem alaajel 2020-12-26 15:07:12 +04:00 committed by Govindas
parent b16ad58d16
commit 0783fd64d0

View File

@ -223,8 +223,10 @@ 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!");
if (debugMode) {
e.printStackTrace();
}
}
});
} else {