Skip to content

Commit 401e89b

Browse files
authored
enhance debug log
1 parent 0028e30 commit 401e89b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/control/optional.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ def et_get_loading_hours(self, duration: float, remaining_time: float) -> List[i
104104
if 3600 == price_timeslot_seconds
105105
else create_unix_timestamp_current_quarter_hour()
106106
)
107+
108+
log.debug(f"current full hour: "
109+
f"{int(now)} {datetime.datetime.fromtimestamp(int(now)).strftime('%Y-%m-%d %H:%M')} "
110+
f"Plan target Date: {int(now) + remaining_time} "
111+
f"{datetime.datetime.fromtimestamp(int(now) + remaining_time).strftime('%Y-%m-%d %H:%M')}")
112+
107113
prices = {
108114
timestamp: price
109115
for timestamp, price in prices.items()

0 commit comments

Comments
 (0)