Skip to content

Commit

Permalink
scheduler/log.c: Use [Job N] even for syslog
Browse files Browse the repository at this point in the history
Cherry picked from OpenPrinting/cups#154
  • Loading branch information
AtariDreams committed Sep 11, 2021
1 parent d03753f commit 27d73f8
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 27d73f8

Please sign in to comment.