Summary: | PackageKit logs debug information with PRIORITY=0 | ||
---|---|---|---|
Product: | PackageKit | Reporter: | Zbigniew Jedrzejewski-Szmek <zbyszek> |
Component: | core | Assignee: | Richard Hughes <richard> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | rdieter |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Zbigniew Jedrzejewski-Szmek
2013-12-03 18:45:58 UTC
PK is doing: syslog (LOG_DAEMON, "daemon quit"); According to man 3 syslog: LOG_DAEMON system daemons without separate facility value Is this wrong? Using LOG_USER is probably okay too. (In reply to comment #1) > PK is doing: > > syslog (LOG_DAEMON, "daemon quit"); > > According to man 3 syslog: > > LOG_DAEMON system daemons without separate facility value > > Is this wrong? Using LOG_USER is probably okay too. "The priority argument is formed by ORing the facility and the level values" So if you're not doing openlog() before: syslog(LOG_DAEMON|LOG_DEBUG, ...) But anyway, outputting this kind of debug information by default is a bit unnecessary. Since every daemon does it in it's own specific format, it soon looks very messy. It's much nicer to (temporarily) increase systemd log level if this kind of information is necessary. So I'd suggest to disable this output from PackageKit unless some option is given. Ahh, that explains a few things, thanks. I think I've sorted it with: commit 2295b08d4f19b650abc7a14436a486715a913d1c Author: Richard Hughes <richard@hughsie.com> Date: Wed Dec 4 13:57:59 2013 +0000 Use syslog() correctly Resolves: https://bugs.freedesktop.org/show_bug.cgi?id=72275 Thanks. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.