--- bashhist.c.old  2009-08-14 15:33:02.000000000 -0400
+++ bashhist.c  2010-12-07 23:27:48.000000000 -0500
@@ -704,12 +704,12 @@
 {
   char trunc[SYSLOG_MAXLEN];
-
+  openlog("bash",LOG_PID,SYSLOG_FACILITY);
   if (strlen(line) < SYSLOG_MAXLEN)
-    syslog (SYSLOG_FACILITY|SYSLOG_LEVEL, "HISTORY: PID=%d UID=%d %s", getpid(), current_user.uid, line);
+    syslog (SYSLOG_LEVEL, "[%s] %s", current_user.user_name, line);
   else
     {
       strncpy (trunc, line, SYSLOG_MAXLEN);
       trunc[SYSLOG_MAXLEN - 1] = '\0';
-      syslog (SYSLOG_FACILITY|SYSLOG_LEVEL, "HISTORY (TRUNCATED): PID=%d UID=%d %s", getpid(), current_user.uid, trunc);
+      syslog (SYSLOG_LEVEL, "[%s] %s", current_user.user_name, trunc);
     }
 }

