]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update the hold expiration logging - one case is an error, the other is normal.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 1 May 2019 18:57:51 +0000 (14:57 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 1 May 2019 18:57:51 +0000 (14:57 -0400)
scheduler/job.c

index f063c7d416f0c3bc0dd2d82822eddc4895dcbfda..33ad7025b649548da39c303d7af016f091537b0e 100644 (file)
@@ -304,10 +304,12 @@ cupsdCheckJobs(void)
 
         if (cupsdTimeoutJob(job))
          continue;
-      }
 
-      cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job submission timed out.");
-      cupsdLogJob(job, CUPSD_LOG_ERROR, "Job submission timed out.");
+       cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job submission timed out.");
+       cupsdLogJob(job, CUPSD_LOG_ERROR, "Job submission timed out.");
+      }
+      else
+       cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job hold expired.");
     }
 
    /*