From 7d38814cae372d530cd1ed8f39ef8ae3abbe28df Mon Sep 17 00:00:00 2001 From: Judy Date: Tue, 27 May 2025 16:51:38 +0900 Subject: [PATCH] refactor: Change error messsage 'print' -> 'get_logger' --- pr_agent/algo/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index a06eefc6..fed3236c 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -220,7 +220,7 @@ def convert_to_markdown_v2(output_data: dict, if git_provider and relevant_file and line_number: reference_link = git_provider.get_line_link(relevant_file, line_number, line_number) except Exception as e: - print(f"Error generating link: {e}") + get_logger().exception(f"Error generating link: {e}") return f"{relevant_file} [{line_number}]: {content}" file_line = f"{relevant_file} [{line_number}]"