aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/__init__.py3
-rw-r--r--tests/plugin_tests.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 540d4659..632e2f5f 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -517,6 +517,9 @@ class Plugin(object):
file in a glob is too large it will be tailed to meet the sizelimit.
"""
+ if self.get_option('all_logs'):
+ sizelimit = None
+
if sizelimit:
sizelimit *= 1024 * 1024 # in MB
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py
index 3a7ce9c3..0ccea73b 100644
--- a/tests/plugin_tests.py
+++ b/tests/plugin_tests.py
@@ -90,7 +90,7 @@ class EnablerPlugin(Plugin):
class MockOptions(object):
- pass
+ all_logs = False
class PluginToolTests(unittest.TestCase):