Merge "Fix greping of the journalctl log for neutron notification line"

This commit is contained in:
Zuul 2021-01-28 19:32:41 +00:00 committed by Gerrit Code Review
commit 259c5246b3
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ class JournalLogDigger(LogFileDigger):
try:
result = sh.execute(["journalctl", '--no-pager',
"--unit", self.filename,
"--since", "5 minutes ago",
'--grep', pattern],
"--since", "30 minutes ago",
'--grep', "'%s'" % pattern],
**self.execute_params)
except sh.ShellCommandFailed as ex:
if ex.stdout.endswith('-- No entries --\n'):