synchronized (this) {
if (socket != null && !socket.isClosing()) {
// close socket, if still open
- logger.info("Restarting GardenaSmart Webservice ({})", socket.getSocketID());
+ logger.debug("Restarting GardenaSmart Webservice ({})", socket.getSocketID());
socket.stop();
} else {
// if socket is already closing, exit function and do not restart socket
} catch (CancellationException ex) {
// ignore
} catch (Exception ex) {
- logger.error("Error waiting for device discovery scan: {}", ex.getMessage(), ex);
+ logger.warn("Error waiting for device discovery scan: {}", ex.getMessage(), ex);
}
}
}
} catch (GardenaDeviceNotFoundException | AccountHandlerNotAvailableException ex) {
logger.debug("{}", ex.getMessage(), ex);
} catch (GardenaException ex) {
- logger.error("{}", ex.getMessage(), ex);
+ logger.warn("{}", ex.getMessage(), ex);
}
}