Skip to content

Commit

Permalink
Add additional print statement to tag_ulog
Browse files Browse the repository at this point in the history
  • Loading branch information
YvesSchoenberg committed Dec 22, 2023
1 parent c10d667 commit bb1d463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/tag_ulog/src/tag_ulog/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ def extract_text_between_brackets(text):
full_path = os.path.join(root, file)
ulog = ULog(full_path, msg_filter, True)
for m in ulog.logged_messages:
print(m.log_level_str() + " " + m.message)
if m.log_level_str() == "ERROR":
module_name = extract_text_between_brackets(m.message)
if module_name is not None:
module_name = "ERROR_" + module_name
if module_name not in put_tags:
put_tags.append(module_name)
continue
print(f"{m.log_level_str()} {m.message}")

with open(output_path_metadata, "w") as json_file:
metadata_dict = {
Expand Down

0 comments on commit bb1d463

Please sign in to comment.