Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hue] Reduce log level in refresh jobs #8088

Merged
merged 1 commit into from
Jul 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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