Skip to content

Commit

Permalink
[hue] Reduce log level in refresh jobs (openhab#8088)
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: CSchlipp <christian@schlipp.de>
  • Loading branch information
lolodomo authored and CSchlipp committed Jul 26, 2020
1 parent c49814a commit 82add99
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected void doConnectedRun() throws IOException, ApiException {

final SensorStatusListener sensorStatusListener = sensorStatusListeners.get(sensorId);
if (sensorStatusListener == null) {
logger.debug("Hue sensor '{}' added.", sensorId);
logger.trace("Hue sensor '{}' added.", sensorId);

if (discovery != null && !lastSensorStateCopy.containsKey(sensorId)) {
discovery.addSensorDiscovery(sensor);
Expand All @@ -196,7 +196,7 @@ protected void doConnectedRun() throws IOException, ApiException {

// Check for removed sensors
lastSensorStateCopy.forEach((sensorId, sensor) -> {
logger.debug("Hue sensor '{}' removed.", sensorId);
logger.trace("Hue sensor '{}' removed.", sensorId);
lastSensorStates.remove(sensorId);

final SensorStatusListener sensorStatusListener = sensorStatusListeners.get(sensorId);
Expand Down Expand Up @@ -230,7 +230,7 @@ protected void doConnectedRun() throws IOException, ApiException {

final LightStatusListener lightStatusListener = lightStatusListeners.get(lightId);
if (lightStatusListener == null) {
logger.debug("Hue light '{}' added.", lightId);
logger.trace("Hue light '{}' added.", lightId);

if (discovery != null && !lastLightStateCopy.containsKey(lightId)) {
discovery.addLightDiscovery(fullLight);
Expand All @@ -247,7 +247,7 @@ protected void doConnectedRun() throws IOException, ApiException {

// Check for removed lights
lastLightStateCopy.forEach((lightId, light) -> {
logger.debug("Hue light '{}' removed.", lightId);
logger.trace("Hue light '{}' removed.", lightId);
lastLightStates.remove(lightId);

final LightStatusListener lightStatusListener = lightStatusListeners.get(lightId);
Expand Down Expand Up @@ -313,7 +313,7 @@ protected void doConnectedRun() throws IOException, ApiException {

final GroupStatusListener groupStatusListener = groupStatusListeners.get(groupId);
if (groupStatusListener == null) {
logger.debug("Hue group '{}' ({}) added (nb lights {}).", groupId, fullGroup.getName(),
logger.trace("Hue group '{}' ({}) added (nb lights {}).", groupId, fullGroup.getName(),
fullGroup.getLights().size());

if (discovery != null && !lastGroupStateCopy.containsKey(groupId)) {
Expand All @@ -331,7 +331,7 @@ protected void doConnectedRun() throws IOException, ApiException {

// Check for removed groups
lastGroupStateCopy.forEach((groupId, group) -> {
logger.debug("Hue group '{}' removed.", groupId);
logger.trace("Hue group '{}' removed.", groupId);
lastGroupStates.remove(groupId);

final GroupStatusListener groupStatusListener = groupStatusListeners.get(groupId);
Expand Down

0 comments on commit 82add99

Please sign in to comment.