Bug 1071573

Summary: setroubleshoot spams system log
Product: [Fedora] Fedora Reporter: Elad Alfassa <elad>
Component: setroubleshootAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dwalsh, mgrepl, plautrba, systemd-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-07 10:05:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
setroubleshoot logspam example none

Description Elad Alfassa 2014-03-01 20:17:58 UTC
Created attachment 869495 [details]
setroubleshoot logspam example

Every time there's an AVC, every time I click on setroubleshoot, many many lines spam my system log.

I understand logs makes it easier to debug, but this amount of logging is (for a lack of a nicer word) unacceptable. This verboisty is a "debug" level and should not be used by default. Please either stop spamming the system log, or at least disable this by default (add a --debug flag or something).

This amount of output in the system log makes it harder to debug other applications, and makes the log almost unreadble, hiding informative data in a huge pile of setroubleshoot debugging data (which is not useful unless you are actually debugging setroubleshoot).

Comment 1 Daniel Walsh 2014-03-03 16:38:06 UTC
I believe these are at debug level.  I am not seeing these messages in my log files.  Are you certain you have not turned on syslog to log debug messages?

Comment 2 Elad Alfassa 2014-03-03 16:40:28 UTC
I don't have syslog here, only systemd-journald with the default settings.

Comment 3 Daniel Walsh 2014-03-16 22:26:17 UTC
If systemd-journald takes all debug messages from syslog, I am not sure what I need to do.

Comment 4 Elad Alfassa 2014-03-21 13:44:40 UTC
I'd say don't output any debug messages unless a debug flag is set.

Comment 5 Jaroslav Reznik 2015-03-03 15:32:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 6 Petr Lautrbach 2015-04-07 10:05:19 UTC
I believe that this is fixed in setroubleshoot-3.2.18-1, upstream commit https://github.com/fedora-selinux/setroubleshoot/commit/37d80af2f97917191d73f82011af7cdf33e58d40