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.

This commit is contained in:
vvzvlad 2025-01-19 09:54:48 +03:00
parent 8acb4768e3
commit 625a8f71ae

View File

@ -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)