Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Dec 10, 2024
1 parent 8011efd commit ee8ac17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def check(log_file, duration_to_count, log_count_threshold, log_format):
recent_log_list = []
unique_frequent_log_list = []

# with open("autoware.log", "r") as f:
with open(log_file, "r") as f:
for full_message in f.readlines():
try:
# The following implementation depends on the log format.
if log_format == "1":
node_name = full_message.split("[")[4].split("]")[0]
timestamp = float(full_message.split("[")[0][:-1])
Expand Down

0 comments on commit ee8ac17

Please sign in to comment.