only log stack traces to openhab.log if debug is enabled (#9427)

Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
This commit is contained in:
robnielsen
2020-12-19 13:18:10 -06:00
committed by GitHub
parent 6b888b3492
commit 4409cf63c9
2 changed files with 10 additions and 2 deletions

View File

@@ -199,7 +199,11 @@ public class CloudClient {
}).on(Socket.EVENT_ERROR, new Emitter.Listener() {
@Override
public void call(Object... args) {
logger.error("Error connecting to the openHAB Cloud instance: {}", args[0]);
if (logger.isDebugEnabled()) {
logger.error("Error connecting to the openHAB Cloud instance: {}", args[0]);
} else {
logger.error("Error connecting to the openHAB Cloud instance");
}
}
}).on("request", new Emitter.Listener() {
@Override