aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-12-01 12:32:37 +0100
committerMichael Adam <obnox@samba.org>2016-12-01 16:15:12 +0100
commit2a02bd2ba2a1c48331262e2ec4bda547c32b3419 (patch)
treeed92a02b0fce4a9f8f45e1c326a66fb212686014
parent27be5f6b79b4a8adc2731af38fd4be9e6c05a802 (diff)
downloadsos-2a02bd2ba2a1c48331262e2ec4bda547c32b3419.tar.gz
[samba] if --all-logs is given, collect everything under /var/log/samba
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--sos/plugins/samba.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/plugins/samba.py b/sos/plugins/samba.py
index 36cc9ded..e57546e6 100644
--- a/sos/plugins/samba.py
+++ b/sos/plugins/samba.py
@@ -43,6 +43,9 @@ class Samba(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
self.add_copy_spec_limit("/var/log/samba/log.wb-*",
sizelimit=self.limit)
+ if self.get_option("all_logs"):
+ self.add_copy_spec_limit("/var/log/samba/", sizelimit=self.limit)
+
self.add_cmd_output([
"wbinfo --domain='.' -g",
"wbinfo --domain='.' -u",