Zdenek Dohnal [Fri, 19 Mar 2021 08:25:41 +0000 (09:25 +0100)]
scheduler/log.c: Use `[Job N]` even for syslog
Currently there is a difference in job log format based on where logs
are sent - the message contains `[Job N]` if sent to a file and it
doesn't contain the string if sent to syslog.
Though it can be seen as a duplicate of information, since the main
syslog system used (journald) is capable of filtering messages based on
JID, but having `[Job N]` string in logs in syslog is useful when you
need to debug complex issues and you need to see what happens in the
scheduler and in a specific job at the same time - f.e. at print
servers.
How to reproduce:
0) set error logs to syslog in /etc/cups/cups-files.conf
1) $ cupsctl --debug-logging
2) $ lp -d <queue> <file>
3) $ journalctl -u cups
Actual results:
Cannot distinguish logs from scheduler and from the job
Results after the patch:
Job logs have `[Job N]` at the start of message, where N is a job id.
Zdenek Dohnal [Fri, 19 Mar 2021 08:25:41 +0000 (09:25 +0100)]
scheduler/log.c: Use `[Job N]` even for syslog
Currently there is a difference in job log format based on where logs
are sent - the message contains `[Job N]` if sent to a file and it
doesn't contain the string if sent to syslog.
Though it can be seen as a duplicate of information, since the main
syslog system used (journald) is capable of filtering messages based on
JID, but having `[Job N]` string in logs in syslog is useful when you
need to debug complex issues and you need to see what happens in the
scheduler and in a specific job at the same time - f.e. at print
servers.
How to reproduce:
0) set error logs to syslog in /etc/cups/cups-files.conf
1) $ cupsctl --debug-logging
2) $ lp -d <queue> <file>
3) $ journalctl -u cups
Actual results:
Cannot distinguish logs from scheduler and from the job
Results after the patch:
Job logs have `[Job N]` at the start of message, where N is a job id.
Zdenek Dohnal [Mon, 15 Mar 2021 12:15:24 +0000 (13:15 +0100)]
cups.service.in: Add `SYSTEMD_WANTED_BY` variable
The variable contains `printers.target` by default. If CUPS is
configured with web interface and browsing enabled, `multi-user.target`
is added to the variable.
jschwender [Mon, 15 Mar 2021 07:23:54 +0000 (08:23 +0100)]
more explicit terms in the job listing templates.
ja,ru,pt_BR,es use identical english terms as they are untranslated so far.
de is translated. da, fr need an update for translation.
Michael R Sweet [Thu, 11 Mar 2021 16:31:03 +0000 (11:31 -0500)]
Address review by Till Kamppeter:
- Add mopria-certified and printer-wifi-xxx to list of Printer Description
attributes.
- Bump the PPD cache version to reflect the additional attributes we are adding.
- Update the documentation to note that DefaultPaperSize and ReadyPaperSizes
contain a list of PPD size names.
- Update urf-supported/URF values to include copies (CP), finishings (FN), and
print-quality (PQ) values.
Till Kamppeter [Wed, 10 Mar 2021 20:48:18 +0000 (21:48 +0100)]
scheduler: Admin task check: Grant access when client is our Snap
If the client Snap is the same as our cupsd is snapped in, grant
access without calling "snapctl". This makes the checks faster and
less resource-consuming if the inquiries are from the command line
tools or the included cups-browsed.
Till Kamppeter [Wed, 10 Mar 2021 20:48:18 +0000 (21:48 +0100)]
scheduler: Admin task check: Grant access when client is our Snap
If the client Snap is the same as our cupsd is snapped in, grant
access without calling "snapctl". This makes the checks faster and
less resource-consuming if the inquiries are from the command line
tools or the included cups-browsed.