summaryrefslogtreecommitdiff
path: root/scheduler
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-05-01 14:57:51 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-05-01 14:57:51 -0400
commit6dac1130b551fe328baa5984211d1ca720a152f8 (patch)
tree2069852be5e83a692582b5abd4193dcc42171ce9 /scheduler
parentd6395c6f1d67478e667eedc2e272e26e4400163f (diff)
downloadcups-6dac1130b551fe328baa5984211d1ca720a152f8.tar.gz
Update the hold expiration logging - one case is an error, the other is normal.
Diffstat (limited to 'scheduler')
-rw-r--r--scheduler/job.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/scheduler/job.c b/scheduler/job.c
index f063c7d41..33ad7025b 100644
--- a/scheduler/job.c
+++ b/scheduler/job.c
@@ -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.");
}
/*