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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user