aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-11-13 19:02:05 +0000
committerBryn M. Reeves <bmr@redhat.com>2013-11-13 19:02:05 +0000
commit0abe23abd5a7b7d6eb6e403f2fb94ae762ce73e3 (patch)
treec8b4c0a50ad6dd97f9c743854b8b648c6d3ec5f2
parentc6b3bc5541766f3a1da8c0501e218f2e84568d65 (diff)
downloadsos-0abe23abd5a7b7d6eb6e403f2fb94ae762ce73e3.tar.gz
Remove debug statements from logs plugin
The 'all_logs' path of the logs plugin has three leftover debug print statements. Remove them to avoid cluttering the console output when the option is used. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/logs.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py
index bdf92067..7e7545f1 100644
--- a/sos/plugins/logs.py
+++ b/sos/plugins/logs.py
@@ -38,14 +38,11 @@ class Logs(Plugin):
self.add_copy_spec_limit("/var/log/boot*", sizelimit = self.limit)
if self.get_option('all_logs'):
- print( "doing all_logs...")
logs = self.do_regex_find_all("^\S+\s+(-?\/.*$)\s+",
"/etc/syslog.conf")
- print(logs)
if self.policy().pkg_by_name("rsyslog") \
or os.path.exists("/etc/rsyslog.conf"):
logs += self.do_regex_find_all("^\S+\s+(-?\/.*$)\s+", "/etc/rsyslog.conf")
- print(logs)
for i in logs:
if i.startswith("-"):
i = i[1:]