forked from TrueCloudLab/frostfs-testlib
[#141] Executive command changed
Added exception of error 'Too many requests' in log analyzer Signed-off-by: Mikhail Kadilov m.kadilov@yadro.com
This commit is contained in:
parent
5bebfddc33
commit
3e8614f912
1 changed files with 2 additions and 3 deletions
|
@ -247,12 +247,11 @@ class DockerHost(Host):
|
||||||
logger.info(f"Got exception while dumping logs of '{container_name}': {exc}")
|
logger.info(f"Got exception while dumping logs of '{container_name}': {exc}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if exclude_filter:
|
||||||
|
filtered_logs = filtered_logs.replace(exclude_filter, "")
|
||||||
matches = re.findall(filter_regex, filtered_logs, re.IGNORECASE + re.MULTILINE)
|
matches = re.findall(filter_regex, filtered_logs, re.IGNORECASE + re.MULTILINE)
|
||||||
found = list(matches)
|
found = list(matches)
|
||||||
|
|
||||||
if exclude_filter:
|
|
||||||
found = [match for match in found if match != exclude_filter]
|
|
||||||
|
|
||||||
if found:
|
if found:
|
||||||
filtered_logs += f"{container_name}:\n{os.linesep.join(found)}"
|
filtered_logs += f"{container_name}:\n{os.linesep.join(found)}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue