]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Log debug history if the backend fails (Issue #1205)
authorMichael R Sweet <msweet@msweet.org>
Wed, 2 Apr 2025 20:06:37 +0000 (16:06 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 2 Apr 2025 20:06:37 +0000 (16:06 -0400)
CHANGES.md
scheduler/job.c

index ffea3754c6c62684c90a8b20e2c59e8dd157b1a7..6f4625d69c68781f9aeaf4be4b3d567103c2995f 100644 (file)
@@ -7,6 +7,8 @@ Changes in CUPS v2.4.12 (YYYY-MM-DD)
 
 - GnuTLS follows system crypto policies now (Issue #1105)
 - Added `NoSystem` SSLOptions value (Issue #1130)
+- The scheduler now logs a job's debugging history if the backend fails
+  (Issue #1205)
 - Fixed a potential "lost PPD" condition in the scheduler (Issue #1109)
 - Fixed a compressed file error handling bug (Issue #1070)
 - Fixed a bug in the make-and-model whitespace trimming code (Issue #1096)
index f45fb1ec819fd14385c936d8fec9a345d88a4c28..11579875968047ca3b44cd2c3fc0044b8c4eead5 100644 (file)
@@ -3605,9 +3605,7 @@ finalize_job(cupsd_job_t *job,            /* I - Job */
 
   if (job->history)
   {
-    if (job->status &&
-        (job->state_value == IPP_JOB_ABORTED ||
-         job->state_value == IPP_JOB_STOPPED))
+    if (job->status)
       dump_job_history(job);
     else
       free_job_history(job);