From ab5a252c6629b45e6be34bdc17b301d9742c3681 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 6 Oct 1995 04:33:07 +0000 Subject: [PATCH] Make the logs less verbose, by omitting the hostname, pid, etc. information. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6938 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm/ChangeLog | 5 +++++ src/lib/kadm/logger.c | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/lib/kadm/ChangeLog b/src/lib/kadm/ChangeLog index ed8818d45..49097580f 100644 --- a/src/lib/kadm/ChangeLog +++ b/src/lib/kadm/ChangeLog @@ -1,3 +1,8 @@ +Fri Oct 6 00:30:16 1995 Theodore Y. Ts'o + + * logger.c (klog_vsyslog): Make the logs less verbose, by omitting + the hostname, pid, etc. information. + Thu Oct 5 19:46:40 1995 Theodore Y. Ts'o * alt_prof.c (krb5_read_realm_params): Remove the profile diff --git a/src/lib/kadm/logger.c b/src/lib/kadm/logger.c index 1c2d5dbfb..425c1ccc7 100644 --- a/src/lib/kadm/logger.c +++ b/src/lib/kadm/logger.c @@ -818,7 +818,11 @@ klog_vsyslog(priority, format, arglist) /* * Format a syslog-esque message of the format: * - * [](): + * (verbose form) + * [](): + * + * (short form) + * */ cp = outbuf; (void) time(&now); @@ -841,9 +845,13 @@ klog_vsyslog(priority, format, arglist) strncpy(outbuf, ctime(&now) + 4, 15); cp += 15; #endif /* HAVE_STRFTIME */ +#ifdef VERBOSE_LOGS sprintf(cp, " %s %s[%d](%s): ", log_control.log_hostname, log_control.log_whoami, getpid(), severity2string(priority)); +#else + sprintf(cp, " "); +#endif syslogp = &outbuf[strlen(outbuf)]; /* Now format the actual message */ -- 2.26.2