* logger.c (krb5_klog_init): remember to call openlog() when
authorBarry Jaspan <bjaspan@mit.edu>
Tue, 15 Oct 1996 22:04:12 +0000 (22:04 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Tue, 15 Oct 1996 22:04:12 +0000 (22:04 +0000)
  defaulting to syslog because nothing else was specified
(klog_vsyslog): enable VERBOSE_LOGS so we get the process name and
  pid [krb5-kdc/63]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9179 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/ChangeLog
src/lib/kadm5/logger.c

index 411bc75f654f594070d8b5b756c5113bbae88dcf..fb4dd9b0f38691f764f0cb0d4d7c9835f21d44af 100644 (file)
@@ -1,3 +1,10 @@
+Tue Oct 15 18:01:51 1996  Barry Jaspan  <bjaspan@mit.edu>
+
+       * logger.c (krb5_klog_init): remember to call openlog() when
+       defaulting to syslog because nothing else was specified
+       (klog_vsyslog): enable VERBOSE_LOGS so we get the process name and
+       pid [krb5-kdc/63]
+
 Thu Sep 26 17:45:18 1996  Barry Jaspan  <bjaspan@mit.edu>
 
        * alt_prof.c: don't allow admin_dbname or admin_lockfile to be
index 924fb9a23e20ba53053aa2b8b750132f2c6999ba..f62d9d36a5bd460a06089c66ab6a7d12a05dd574 100644 (file)
@@ -24,6 +24,9 @@
 
 #if !defined(_MSDOS)
 
+/* KADM5 wants non-syslog log files to contain syslog-like entries */
+#define VERBOSE_LOGS
+
 /*
  * logger.c    - Handle logging functions for those who want it.
  */
@@ -665,8 +668,9 @@ krb5_klog_init(kcontext, ename, whoami, do_com_err)
        log_control.log_entries = &def_log_entry;
        log_control.log_entries->log_type = K_LOG_SYSLOG;
        log_control.log_entries->log_2free = (krb5_pointer) NULL;
-       log_control.log_entries->lsu_facility = LOG_AUTH;
+       log_facility = log_control.log_entries->lsu_facility = LOG_AUTH;
        log_control.log_entries->lsu_severity = LOG_ERR;
+       do_openlog = 1;
        log_control.log_nentries = 1;
     }
     if (log_control.log_nentries) {