Browse Source

changed formatter to include the PID

Helmut Pozimski 11 years ago
parent
commit
a30a896280
1 changed files with 1 additions and 1 deletions
  1. 1 1
      stdd

+ 1 - 1
stdd

@@ -93,7 +93,7 @@ elif config.syslog_facility == "daemon":
 		facility=logging.handlers.SysLogHandler.LOG_DAEMON)
 console_handler = logging.StreamHandler()
 
-formatter = logging.Formatter("%(name)s[os.getuid()]:  %(message)s")
+formatter = logging.Formatter("%(name)s[" +str(os.getpid()) +  "]: %(message)s")
 
 syslog_handler.setFormatter(formatter)
 console_handler.setFormatter(formatter)