From: Theodore Tso Date: Fri, 6 Oct 1995 04:33:07 +0000 (+0000) Subject: Make the logs less verbose, by omitting the hostname, pid, etc. X-Git-Tag: krb5-1.0-beta6~930 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ab5a252c6629b45e6be34bdc17b301d9742c3681;p=krb5.git 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 --- 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 */