]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Log held job messages as errors so that is it clear why a job was held (Issue #5604)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 16 Jul 2019 14:37:37 +0000 (10:37 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 16 Jul 2019 14:37:37 +0000 (10:37 -0400)
scheduler/job.c

index 4e8990fe52cb0602e961aeb07585c124c0c5c788..89b1c28c58b7600d6d69c994c7204d1db1470441 100644 (file)
@@ -2625,7 +2625,7 @@ cupsdSetJobState(
     else
       cupsdAddEvent(CUPSD_EVENT_JOB_STATE, job->printer, job, "%s", buffer);
 
-    if (newstate == IPP_JOB_STOPPED || newstate == IPP_JOB_ABORTED)
+    if (newstate == IPP_JOB_STOPPED || newstate == IPP_JOB_ABORTED || newstate == IPP_JOB_HELD)
       cupsdLogJob(job, CUPSD_LOG_ERROR, "%s", buffer);
     else
       cupsdLogJob(job, CUPSD_LOG_INFO, "%s", buffer);