From c6d1ac4b36cc1b0f56d88ac2f60bad272e82be4e Mon Sep 17 00:00:00 2001 From: Nicolas KAROLAK <nicolas@karolak.fr> Date: Fri, 19 Apr 2019 15:32:01 +0200 Subject: [PATCH] fix journalctl postfix command --- tests/test_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_email.py b/tests/test_email.py index d9e3f288..35d3e258 100755 --- a/tests/test_email.py +++ b/tests/test_email.py @@ -145,7 +145,7 @@ def check_send_test_email(conf: dict) -> int: cmd = "grep '{}' /var/log/mail.log".format(email) else: u.info("/var/log/mail.log not found, trying journalctl") - cmd = "journalctl -u postfix | grep {}".format(email) + cmd = "journalctl -t postfix/smtp | grep {}".format(email) # logs polling time.sleep(1) -- GitLab