]> 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:05:03 +0000 (16:05 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 2 Apr 2025 20:05:03 +0000 (16:05 -0400)
scheduler/job.c

index f6d5f925b673ea938c148589f294cdaef9b8af38..21b5a21fc500b67770c318a52fc5b8cbef03794e 100644 (file)
@@ -3597,9 +3597,7 @@ finalize_job(cupsd_job_t *job,            /* I - Job */
 
   if (job->history)
   {
-    if (job->status &&
-        (job->state_value == IPP_JSTATE_ABORTED ||
-         job->state_value == IPP_JSTATE_STOPPED))
+    if (job->status)
       dump_job_history(job);
     else
       free_job_history(job);