Pārlūkot izejas kodu

changed formatter to include the PID

Helmut Pozimski 11 gadi atpakaļ
vecāks
revīzija
a30a896280
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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)