From ae3726d90654ccb49fb67d36b3a6d8eb5d4e7bb5 Mon Sep 17 00:00:00 2001 From: 0xb00bface <0xboobface@gmail.com> Date: Sat, 19 Dec 2020 15:50:24 +0100 Subject: [PATCH] Improve logging --- common/src/main/java/ctbrec/sites/cam4/Cam4WsClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/ctbrec/sites/cam4/Cam4WsClient.java b/common/src/main/java/ctbrec/sites/cam4/Cam4WsClient.java index dbe854b5..81a5c9a7 100644 --- a/common/src/main/java/ctbrec/sites/cam4/Cam4WsClient.java +++ b/common/src/main/java/ctbrec/sites/cam4/Cam4WsClient.java @@ -158,9 +158,9 @@ public class Cam4WsClient { super.onFailure(webSocket, t, response); try { if(response != null) { - LOG.error("failure: {}", response.body().string(), t); + LOG.error("failure {}: {}", model, response.body().string(), t); } else { - LOG.error("failure:", t); + LOG.error("failure {}:", model, t); } } catch (IOException e) { LOG.error("Connection failure and couldn't get the response body", e);