diff --git a/checker.py b/checker.py index 9e365f0..8b15309 100644 --- a/checker.py +++ b/checker.py @@ -138,7 +138,7 @@ def check_logs(log_handler): except subprocess.CalledProcessError as e: raise RuntimeError(f"Error running docker logs: {e}") - subscription_pattern = r'Ignored subscription creation.*id=(\d+).*err=([^\s]+)' + subscription_pattern = r'\[info\s*\].*Ignored subscription creation.*id=(\d+).*err=(.+?)(?=\s+\[|$)' matches = list(re.finditer(subscription_pattern, log_content)) if not matches: @@ -147,7 +147,7 @@ def check_logs(log_handler): last_match = matches[-1] last_id = last_match.group(1) - error_type = last_match.group(2) + error_type = last_match.group(2).strip() if error_type == "Container-set not supported": status = f"Container error (id: {last_id})"