Added unit to logs getter #95

Closed
anurindm wants to merge 1 commit from anurindm:add_unit_to_logs_getter into master
2 changed files with 2 additions and 0 deletions
Showing only changes of commit a204b12355 - Show all commits

View file

@ -211,6 +211,7 @@ class DockerHost(Host):
message_regex: str,
since: Optional[datetime] = None,
until: Optional[datetime] = None,
unit: Optional[str] = None,
) -> bool:
client = self._get_docker_client()
for service_config in self._config.services:

View file

@ -254,6 +254,7 @@ class Host(ABC):
message_regex: str,
since: Optional[datetime] = None,
until: Optional[datetime] = None,
unit: Optional[str] = None,
) -> bool:
"""Checks logs on host for specified message regex.