diff --git a/src/main/kotlin/click/dobel/shelly/exporter/client/ShellyClient.kt b/src/main/kotlin/click/dobel/shelly/exporter/client/ShellyClient.kt index 7604150..8498ced 100644 --- a/src/main/kotlin/click/dobel/shelly/exporter/client/ShellyClient.kt +++ b/src/main/kotlin/click/dobel/shelly/exporter/client/ShellyClient.kt @@ -24,7 +24,7 @@ abstract class ShellyClient( restTemplate.getForObject(url) } }.getOrElse { ex -> - logger.warn { "GET ${url}: HTTP Request failure: ${ex.message}" } + logger.warn(ex) { "GET ${url}: HTTP Request failure: ${ex.message}" } null } } diff --git a/src/main/kotlin/click/dobel/shelly/exporter/client/ShellyGen2Client.kt b/src/main/kotlin/click/dobel/shelly/exporter/client/ShellyGen2Client.kt index 34ccbff..72a7b5d 100644 --- a/src/main/kotlin/click/dobel/shelly/exporter/client/ShellyGen2Client.kt +++ b/src/main/kotlin/click/dobel/shelly/exporter/client/ShellyGen2Client.kt @@ -15,7 +15,6 @@ class ShellyGen2Client( configProperties: ShellyConfigProperties, restTemplateBuilder: RestTemplateBuilder ) : ShellyClient(this) { - companion object : KLogging() @Cacheable("Gen2ShellyStatus", sync = true) diff --git a/src/main/kotlin/click/dobel/shelly/exporter/client/api/gen2/Gen2ShellyStatus.kt b/src/main/kotlin/click/dobel/shelly/exporter/client/api/gen2/Gen2ShellyStatus.kt index 57f829e..b08674e 100644 --- a/src/main/kotlin/click/dobel/shelly/exporter/client/api/gen2/Gen2ShellyStatus.kt +++ b/src/main/kotlin/click/dobel/shelly/exporter/client/api/gen2/Gen2ShellyStatus.kt @@ -3,6 +3,7 @@ package click.dobel.shelly.exporter.client.api.gen2 import com.fasterxml.jackson.annotation.JsonProperty import java.util.EnumSet +@Suppress("LongParameterList") class Gen2ShellyStatus( //@JsonProperty("ble")