From: Michael R Sweet Date: Wed, 2 Apr 2025 20:05:03 +0000 (-0400) Subject: Log debug history if the backend fails (Issue #1205) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c6286de7037a5e257a8c14d238d445ec0df79e6;p=thirdparty%2Fcups.git Log debug history if the backend fails (Issue #1205) --- diff --git a/scheduler/job.c b/scheduler/job.c index f6d5f925b6..21b5a21fc5 100644 --- a/scheduler/job.c +++ b/scheduler/job.c @@ -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);