Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total page counts are reported strangely for IPP jobs #5571

Closed
akorobkin opened this issue Apr 29, 2019 · 3 comments
Closed

Total page counts are reported strangely for IPP jobs #5571

akorobkin opened this issue Apr 29, 2019 · 3 comments
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@akorobkin
Copy link

When a print job is sent via socket://, CUPS reports printed pages straightforwardly:
printer user job# [date] page_number copies ...

However, when a print job is sent via IPP, in addition to processed pages CUPS reports back intermittent number of pages printed as reported by the printer:

printer user job# [date] total 1 ...
printer user job# [date] total 3 ...
printer user job# [date] total 8 ...

These numbers are more confusing than helpful in the log. If anything, it should report final "total" number, or not report it at all. This information looks to be more pertaining to the debug log, rather than page log.

Or maybe there is a configuration option to suppress these totals in the log?

Please change it to report just final total number of pages, or none whatsoever.
Typical page log attached, and job_log attached.

@michaelrsweet
Copy link
Collaborator

This change is part of CUPS 2.2.10 and 2.3 (Issue #5439) - we now only log pages when the job is completed.

@michaelrsweet michaelrsweet self-assigned this Apr 29, 2019
@michaelrsweet michaelrsweet added the duplicate This issue or pull request already exists label Apr 29, 2019
@akorobkin
Copy link
Author

akorobkin commented May 15, 2019

Quick question: is it expected that the number of copies is no longer reported in 2.2.11?
If I print 2 pages with two copies, I see "total 4 -" in the log, with
PageLogFormat being the default ""%p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}""

@michaelrsweet
Copy link
Collaborator

@akorobkin Yes, in order to fix the accounting values we've dropped the per-page reporting in favor of getting accurate totals. You can always add the copies attribute to the PageLogFormat...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants