From af92a1bd97cb3f0ba58eb0ec9954289d61d21fc0 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 16 Feb 2021 10:29:31 +0800 Subject: [PATCH] sync_err_is_net is not picking up all errors --- src/pacroller/checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacroller/checker.py b/src/pacroller/checker.py index f71c171..14fa89f 100644 --- a/src/pacroller/checker.py +++ b/src/pacroller/checker.py @@ -266,7 +266,7 @@ def _log_parser(log: List[str], report: checkReport) -> None: def sync_err_is_net(output: str) -> bool: ''' check if a sync failure is caused by network ''' output = output.strip().split('\n') - if output[-1] == 'error: failed to synchronize all databases': + if 'error: failed to synchronize all databases' in output: return True else: return False