[ahawastecollection] Change loglevel from warn to debug (#10800)

* 10786: Changed loglevel from warn to debug

Signed-off-by: Sönke Küper <soenkekueper@gmx.de>

* 10786: Spotless fix

Signed-off-by: Sönke Küper <soenkekueper@gmx.de>

Co-authored-by: Sönke Küper <soenkekueper@gmx.de>
This commit is contained in:
Sönke Küper 2021-06-05 15:32:40 +02:00 committed by GitHub
parent 7c5f60dae2
commit 8e4cb48a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,11 +175,12 @@ public class AhaWasteCollectionHandler extends BaseThingHandler {
*/
private void updateChannels(final Map<WasteType, CollectionDate> collectionDates) {
for (final Channel channel : this.getThing().getChannels()) {
final WasteType wasteType = getWasteTypeByChannel(channel.getUID().getId());
final CollectionDate collectionDate = collectionDates.get(wasteType);
if (collectionDate == null) {
this.logger.warn("No collection dates found for waste type: {}", wasteType);
this.logger.debug("No collection dates found for waste type: {}", wasteType);
continue;
}