diff options
author | Michael R Sweet <michaelrsweet@gmail.com> | 2016-10-20 16:45:51 -0400 |
---|---|---|
committer | Michael R Sweet <michaelrsweet@gmail.com> | 2016-10-20 16:45:51 -0400 |
commit | 250bb8a9d6d47fd29814d72b612387c2d22e3be1 (patch) | |
tree | 932b4e36b429d0af6b257cb8f737de1a7320402b /scheduler/main.c | |
parent | c6a9dc36b7e2c3f9afe3680a301fcc86d3d40f75 (diff) | |
download | cups-250bb8a9d6d47fd29814d72b612387c2d22e3be1.tar.gz |
Drop remainder of ASL logging code since it is deprecated in macOS Sierra.
Diffstat (limited to 'scheduler/main.c')
-rw-r--r-- | scheduler/main.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/scheduler/main.c b/scheduler/main.c index 0dcd32de0..e18ffb0c6 100644 --- a/scheduler/main.c +++ b/scheduler/main.c @@ -765,18 +765,11 @@ main(int argc, /* I - Number of command-line args */ if (!cupsdReadConfiguration()) { -#ifdef HAVE_ASL_H - asl_object_t m; /* Log message */ - - m = asl_new(ASL_TYPE_MSG); - asl_set(m, ASL_KEY_FACILITY, "org.cups.cupsd"); - asl_log(NULL, m, ASL_LEVEL_ERR, "Unable to read configuration file \"%s\" - exiting.", ConfigurationFile); - asl_release(m); -#elif defined(HAVE_SYSTEMD_SD_JOURNAL_H) +#ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to read configuration file \"%s\" - exiting.", ConfigurationFile); #else syslog(LOG_LPR, "Unable to read configuration file \'%s\' - exiting.", ConfigurationFile); -#endif /* HAVE_ASL_H */ +#endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ break; } |