Skip to content

Commit

Permalink
Merge pull request #5960 from AtariDreams/patch-3
Browse files Browse the repository at this point in the history
scheduler/log.c: Use [Job N] even for syslog
  • Loading branch information
michaelrsweet committed Sep 13, 2021
2 parents d03753f + 27d73f8 commit 2601ced
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scheduler/log.c
Expand Up @@ -569,11 +569,7 @@ cupsdLogJob(cupsd_job_t *job, /* I - Job */
* Format and write the log message...
*/

#ifdef HAVE_SYSTEMD_SD_JOURNAL_H
if (job && strcmp(ErrorLog, "syslog"))
#else
if (job)
#endif /* HAVE_SYSTEMD_SD_JOURNAL_H */
snprintf(jobmsg, sizeof(jobmsg), "[Job %d] %s", job->id, message);
else
strlcpy(jobmsg, message, sizeof(jobmsg));
Expand Down

0 comments on commit 2601ced

Please sign in to comment.