From 625a8f71aeaf763da37cf987cec51671b865a343 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 19 Jan 2025 09:54:48 +0300 Subject: [PATCH] Update subscription pattern in check_logs function of checker.py to include a wildcard for error messages. This change enhances the regex matching for subscription completion, improving the accuracy of log analysis in health checks. --- checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checker.py b/checker.py index 8bc0b4a..fdb03be 100644 --- a/checker.py +++ b/checker.py @@ -123,7 +123,7 @@ def check_logs(log_handler): except subprocess.CalledProcessError as e: raise RuntimeError(f"Error running docker logs: {e}") from e - subscription_pattern = r'Ignored subscription creation.*id=(\d+) err=Subscription completed' + subscription_pattern = r'Ignored subscription creation.*id=(\d+).*err=Subscription completed' match = re.search(subscription_pattern, log_content) if match: subscription_id = match.group(1)