Make the logs less verbose, by omitting the hostname, pid, etc.
authorTheodore Tso <tytso@mit.edu>
Fri, 6 Oct 1995 04:33:07 +0000 (04:33 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 6 Oct 1995 04:33:07 +0000 (04:33 +0000)
information.

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

src/lib/kadm/ChangeLog
src/lib/kadm/logger.c

index ed8818d454b1dc8a7945259c40f9d1f4e1175cc4..49097580f5a271a989cd06b925dd32981f726410 100644 (file)
@@ -1,3 +1,8 @@
+Fri Oct  6 00:30:16 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * 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  <tytso@dcl>
 
        * alt_prof.c (krb5_read_realm_params): Remove the profile
index 1c2d5dbfb4ede38dfdbcb1047b9d2ac656b6aabf..425c1ccc7393d513eb2b1a1682bf547e63e067e5 100644 (file)
@@ -818,7 +818,11 @@ klog_vsyslog(priority, format, arglist)
     /*
      * Format a syslog-esque message of the format:
      *
-     * <date> <hostname> <id>[<pid>](<priority>): <message>
+     * (verbose form)
+     *                 <date> <hostname> <id>[<pid>](<priority>): <message>
+     *
+     * (short form)
+     *         <date> <message>
      */
     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 */