"Unable to connect Netatmo API : " + e.getLocalizedMessage());
}
} catch (RuntimeException e) {
- logger.warn("Unable to connect Netatmo API : {}", e.getMessage(), e);
+ if (logger.isDebugEnabled()) {
+ logger.warn("Unable to connect Netatmo API : {}", e.getMessage(), e);
+ } else {
+ logger.warn("Unable to connect Netatmo API : {}", e.getMessage());
+ }
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
"Netatmo Access Failed, will retry in " + configuration.reconnectInterval + " seconds.");
}
}).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