From f27997763579d46bb6f7ab5618e97ded8f31a2e7 Mon Sep 17 00:00:00 2001 From: Mohse Morad Date: Tue, 24 Dec 2024 15:50:31 +0200 Subject: [PATCH] Crash reporter add finding only once --- src/robusta/core/playbooks/crash_reporter.py | 2 +- src/robusta/core/playbooks/playbooks_event_handler_impl.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/robusta/core/playbooks/crash_reporter.py b/src/robusta/core/playbooks/crash_reporter.py index 42c19cf3e..b739ed477 100644 --- a/src/robusta/core/playbooks/crash_reporter.py +++ b/src/robusta/core/playbooks/crash_reporter.py @@ -62,4 +62,4 @@ def send_crash_report( except Exception: logging.error("Failed to get pod logs", exc_info=True) - event.add_finding(finding) + event.add_finding(finding) diff --git a/src/robusta/core/playbooks/playbooks_event_handler_impl.py b/src/robusta/core/playbooks/playbooks_event_handler_impl.py index 8b6237a29..412186d7e 100644 --- a/src/robusta/core/playbooks/playbooks_event_handler_impl.py +++ b/src/robusta/core/playbooks/playbooks_event_handler_impl.py @@ -238,7 +238,6 @@ def __run_playbook_actions( playbooks_errors_count.labels(source).inc() continue try: - logging.info("Calling action: %s", registered_action.action_name) if action_with_params: registered_action.func(execution_event, params) else: