Skip to content

Commit

Permalink
fix log error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptosiek committed Sep 22, 2023
1 parent 294fa44 commit 140ad87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/logger/logger_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def write_log_python(self):
self.write(struct.pack(struct_def, *available_data))
except Exception: # noqa
app_logger.exception("Failed writing struct")
app_logger.error("l_num =", l_num, " message_num =", message_num)
app_logger.error(f"l_num = {l_num} message_num = {message_num}")
app_logger.error(available_fields)
app_logger.error(struct_def)
app_logger.error(available_data)
Expand Down Expand Up @@ -550,7 +550,7 @@ def get_summary(self, message_num, local_message_num, lap_num, cur):
app_logger.debug(lap_fields, lap_data)
l_num = self.get_local_message_num(message_num, lap_fields)
if l_num == -1:
# write header if need
# write header if needed
local_message_num = (local_message_num + 1) % 16
self.local_num[local_message_num] = {
"message_num": message_num,
Expand All @@ -565,7 +565,7 @@ def get_summary(self, message_num, local_message_num, lap_num, cur):
self.write(struct.pack(struct_def, *lap_data))
except Exception: # noqa
app_logger.exception("Failed writing struct")
app_logger.error("l_num =", l_num, " message_num =", message_num)
app_logger.error(f"l_num = {l_num} message_num = {message_num}")
app_logger.error(lap_fields)
app_logger.error(struct_def)
app_logger.error(lap_data)
Expand Down

0 comments on commit 140ad87

Please sign in to comment.