From 5de44ef5dca2f01c7cdb7a33fd07526b0a6ecccd Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Tue, 15 Oct 1996 22:04:12 +0000 Subject: [PATCH] * 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] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9179 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/ChangeLog | 7 +++++++ src/lib/kadm5/logger.c | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/lib/kadm5/ChangeLog b/src/lib/kadm5/ChangeLog index 411bc75f6..fb4dd9b0f 100644 --- a/src/lib/kadm5/ChangeLog +++ b/src/lib/kadm5/ChangeLog @@ -1,3 +1,10 @@ +Tue Oct 15 18:01:51 1996 Barry Jaspan + + * 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 * alt_prof.c: don't allow admin_dbname or admin_lockfile to be diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c index 924fb9a23..f62d9d36a 100644 --- a/src/lib/kadm5/logger.c +++ b/src/lib/kadm5/logger.c @@ -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) { -- 2.26.2