Executive command changed #140

Merged
abereziny merged 1 commit from :bug/log_analyzer_fix into master 2023-12-12 07:55:51 +00:00

View file

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