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:
parent
8acb4768e3
commit
625a8f71ae
@ -123,7 +123,7 @@ def check_logs(log_handler):
|
|||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
raise RuntimeError(f"Error running docker logs: {e}") from 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)
|
match = re.search(subscription_pattern, log_content)
|
||||||
if match:
|
if match:
|
||||||
subscription_id = match.group(1)
|
subscription_id = match.group(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user