aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2019-02-21 13:00:21 +0000
committerBryn M. Reeves <bmr@redhat.com>2019-03-22 17:53:41 +0000
commit0606e0f0931ad17c2bba46901cb54f1fd9073e16 (patch)
treea897a76e5945e6230e62e08ff8a5a82f4d5c1fa4
parentf00a9b9ad5d7236c354de0e7b6a60f9a70c70d88 (diff)
downloadsos-0606e0f0931ad17c2bba46901cb54f1fd9073e16.tar.gz
[Plugin] accept predicates in Plugin.add_journal()
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index cf8583ce..4a8a8b35 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -970,7 +970,7 @@ class Plugin(object):
def add_journal(self, units=None, boot=None, since=None, until=None,
lines=None, allfields=False, output=None, timeout=None,
- identifier=None, catalog=None, sizelimit=None):
+ identifier=None, catalog=None, sizelimit=None, pred=None):
"""Collect journald logs from one of more units.
:param units: A string, or list of strings specifying the
@@ -1055,7 +1055,7 @@ class Plugin(object):
self._log_debug("collecting journal: %s" % journal_cmd)
self._add_cmd_output(journal_cmd, timeout=timeout,
- sizelimit=log_size)
+ sizelimit=log_size, pred=pred)
def add_udev_info(self, device, attrs=False):
"""Collect udevadm info output for a given device