瀏覽代碼

changed formatter to include the PID

Helmut Pozimski 11 年之前
父節點
當前提交
a30a896280
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)