Bug 1358589
Summary: | cups doesn't log errors in error_log | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | udayb <udayreddy> | ||||||
Component: | cups | Assignee: | Zdenek Dohnal <zdohnal> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 24 | CC: | jpopelka, twaugh, zdohnal | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | cups-2.1.4-2.fc24 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-08-05 20:53:22 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
udayb
2016-07-21 04:33:29 UTC
Hi Nineth, thank you for contacting us. Can you send me your cupsd.conf and cups-files.conf? It seems cups-2.1 and newer uses syslog as default error_log. Created attachment 1182748 [details]
cupsd.conf
Created attachment 1182749 [details]
cups-files.conf
When you change line "ErrorLog syslog" to "ErrorLog /var/log/cups/error_log", it will work (worked in my case). Can you try it, please? According to http://fedoraproject.org//wiki/Changes/CupsJournalLogging , this is expected behaviour by default. You can change that location by changes from Comment 4. Yes, but the file I posted the messages was the syslog itself! If the error log was set to syslog, there should have been errors messages - but there aren't any. So cups isn't sending its errors to syslog as well. I just verified - changing the error_log to /var/log/cups/error_log gives me all the relevant errors there, but having it set to syslog doesn't give me those errors in /var/log/messages. So when you set ErrorLog to /var/og/cups/error_log, it works correctly, but when it is set to syslog, error logs do not appear in /var/log/messages? If it is the case, I will change bug's name. https://fedoraproject.org/wiki/Changes/NoDefaultSyslog No /var/log/messages is on Fedora by default since Fedora 20 release. Default utility for logs is journalctl since that. Is that problem which you are reporting (no errors in /var/log/messages)? Because I tried to reproduce your issue with both ways of logging errors (syslog and /var/log/cups/error_log) and same error messages appeared in both, journal and /var/log/cups/error_log. Are there errors, which do not appear in journal, but appeared in /var/log/cups/error_log? I see. I should've been looking at the journal then - I was misled by the fact that ErrorLog was "syslog". I guess it should be called "journal" since it's the systemd journal. I can not rename this option, because it would be operation system specific change and upstream would not accept patch for this. But I can add text into comment above option, mentioning syslog = systemd journal by default. cups-2.1.4-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-56017ec8d4 cups-2.1.4-2.fc24 has been pushed to the Fedora 24 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-2016-56017ec8d4 cups-2.1.4-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |