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.
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
Hi Zdenek, Thank you for the prompt fix and upstream patch. And apologies for the frustrated final comment. It has been a long day.
cups-2.2.6-15.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5e48964321
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
Tested cups-2.2.6-15.fc28. Now behaves correctly when logging to syslog (journald), respecting the LogLevel setting.
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.