Bug 1589593 - cupsd LogLevel ignored when logging to journald (syslog)
Summary: cupsd LogLevel ignored when logging to journald (syslog)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 28
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-10 23:23 UTC by Iestyn Elfick
Modified: 2018-07-09 08:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-09 08:50:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Iestyn Elfick 2018-06-10 23:23:38 UTC
Description of problem:
cupsd.conf LogLevel ignored when logging through journald

Version-Release number of selected component (if applicable):
28

How reproducible:
Every time

Steps to Reproduce:
1. DEFAULT CASE (state after initial installation)
cupsd.conf:
LogLevel warn

cups-files.conf:
AccessLog syslog
ErrorLog syslog
PageLog syslog

2. CASE 2
Change cupsd.conf:
LogLevel none

Same cups-files.conf as case 1

3. CASE 3
Change cupsd.conf:
LogLevel warn

Change cups-files.conf:
AccessLog /var/log/cups/access_Log
ErrorLog /var/log/cups/error_log
PageLog /var/log/cups/page_log

4. CASE 4
Change cupsd.conf:
LogLevel debug

cups-files.conf - same as case 3

Actual results:
CASE 1: all debug messages written to journald
CASE 2: all debug messages written to journald
CASE 3: normal messages written to /var/log/cups/...
CASE 4: all debug message written to /var/log/cups/...

Expected results:
CASE 1: journald should get the same messages as filed in case 3
CASE 2: no cups printing message logged to journald
CASE 3: behaves as expected
CASE 4: behaves as expected

Additional info:
When printing single page using journald logging, CUPS generates literally thousands of debug messages in the journal, regardless of LogLevel. 

"systemd-journald[2622]: Suppressed 3748 messages from cups.service" says it all really.

Isn't anything tested anymore? This is basic functionality.

Comment 1 Zdenek Dohnal 2018-06-11 16:01:26 UTC
Hi Iestyn,

thank you for reporting this issue! I created patch for upstream about not-respecting Loglevel when syslog is used here https://github.com/apple/cups/pull/5337

Comment 2 Iestyn Elfick 2018-06-11 16:25:47 UTC
Hi Zdenek,

Thank you for the prompt fix and upstream patch.

And apologies for the frustrated final comment. It has been a long day.

Comment 3 Fedora Update System 2018-06-12 13:57:26 UTC
cups-2.2.6-15.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5e48964321

Comment 4 Fedora Update System 2018-06-13 04:31:23 UTC
cups-2.2.6-15.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5e48964321

Comment 5 Iestyn Elfick 2018-06-13 19:56:43 UTC
Tested cups-2.2.6-15.fc28. Now behaves correctly when logging to syslog (journald), respecting the LogLevel setting.

Comment 6 Fedora Update System 2018-06-14 19:17:05 UTC
cups-2.2.6-15.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.