From 54d26b226c4c2099d9f894281d5901f8579b1915 Mon Sep 17 00:00:00 2001 From: mkadilov Date: Mon, 11 Dec 2023 14:20:06 +0300 Subject: [PATCH] [#140] Executive command changed Added exception of error 'Too many requests' in log analyzer Signed-off-by: Mikhail Kadilov m.kadilov@yadro.com --- src/frostfs_testlib/hosting/docker_host.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frostfs_testlib/hosting/docker_host.py b/src/frostfs_testlib/hosting/docker_host.py index 17146c0b..05cd4b2c 100644 --- a/src/frostfs_testlib/hosting/docker_host.py +++ b/src/frostfs_testlib/hosting/docker_host.py @@ -247,11 +247,10 @@ class DockerHost(Host): logger.info(f"Got exception while dumping logs of '{container_name}': {exc}") continue + if exclude_filter: + filtered_logs = filtered_logs.replace(exclude_filter, "") matches = re.findall(filter_regex, filtered_logs, re.IGNORECASE + re.MULTILINE) found = list(matches) - - if exclude_filter: - found = [match for match in found if match != exclude_filter] if found: filtered_logs += f"{container_name}:\n{os.linesep.join(found)}"