Skip to content

Commit aac2391

Browse files
committed
Minor logging changes
1 parent 6416df2 commit aac2391

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/inverter_charge_controller.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -298,16 +298,19 @@ def _charge_inverter(self, target_state_of_charge: int, maximum_charging_duratio
298298
try:
299299
if self.inverter.get_operation_mode() != OperationMode.ECO_CHARGE:
300300
self.log.warning(
301-
"The operation mode of the inverter changed from the user --> Stopping the charging progress"
301+
"The operation mode of the inverter was changed by the user --> Stopping the charging progress"
302302
)
303303
break
304304

305305
current_state_of_charge = self.inverter.get_state_of_charge()
306306

307307
error_counter = 0
308-
except InverterError as e:
309-
self.log.exception(f"An exception occurred while trying to fetch the current state of charge: {e}")
310-
self.log.warning(f"Waiting for {charging_progress_check_interval} to try again...")
308+
except InverterError:
309+
self.log.warning(
310+
f"An exception occurred while trying to fetch the current state of charge. "
311+
f"Waiting for {charging_progress_check_interval} to try again...",
312+
exc_info=True,
313+
)
311314
error_counter += 1
312315
continue
313316

0 commit comments

Comments
 (0)