From bb1d4631de239cdb127f4af11e434e7882ea79ef Mon Sep 17 00:00:00 2001 From: Yves Date: Fri, 22 Dec 2023 18:31:35 +0100 Subject: [PATCH] Add additional print statement to tag_ulog --- actions/tag_ulog/src/tag_ulog/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/tag_ulog/src/tag_ulog/__main__.py b/actions/tag_ulog/src/tag_ulog/__main__.py index ede47ee..559bb6e 100644 --- a/actions/tag_ulog/src/tag_ulog/__main__.py +++ b/actions/tag_ulog/src/tag_ulog/__main__.py @@ -58,6 +58,7 @@ 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: @@ -65,7 +66,6 @@ def extract_text_between_brackets(text): 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 = {