Merge "Fix greping of the journalctl log for neutron notification line"
This commit is contained in:
commit
259c5246b3
@ -91,8 +91,8 @@ class JournalLogDigger(LogFileDigger):
|
|||||||
try:
|
try:
|
||||||
result = sh.execute(["journalctl", '--no-pager',
|
result = sh.execute(["journalctl", '--no-pager',
|
||||||
"--unit", self.filename,
|
"--unit", self.filename,
|
||||||
"--since", "5 minutes ago",
|
"--since", "30 minutes ago",
|
||||||
'--grep', pattern],
|
'--grep', "'%s'" % pattern],
|
||||||
**self.execute_params)
|
**self.execute_params)
|
||||||
except sh.ShellCommandFailed as ex:
|
except sh.ShellCommandFailed as ex:
|
||||||
if ex.stdout.endswith('-- No entries --\n'):
|
if ex.stdout.endswith('-- No entries --\n'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user