[growatt] improve logging (#17573)

Signed-off-by: AndrewFG <software@whitebear.ch>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Andrew Fiddian-Green 2024-10-15 19:09:38 +01:00 committed by Ciprian Pascu
parent 1cd2e310ca
commit 6a772a0bd3

View File

@ -188,7 +188,7 @@ public class GrowattInverterHandler extends BaseThingHandler {
getGrowattCloud().setupBatteryProgram(deviceId, programMode, powerLevel, stopSOC, enableAcCharging,
startTime, stopTime, enableProgram);
} catch (GrowattApiException e) {
logger.warn("setupBatteryProgram() error", e);
logger.warn("setupBatteryProgram() error '{}'", e.getMessage(), logger.isDebugEnabled() ? e : null);
}
}
}