From 04d96fee25d4989b4d4e3fc041d86e318165c713 Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Thu, 14 Jun 2007 06:37:47 +0000 Subject: [PATCH] M logging.py -- add processID to log messages --- logging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logging.py b/logging.py index 39275d1..204dcb2 100644 --- a/logging.py +++ b/logging.py @@ -5,7 +5,7 @@ # """Logging""" ident = "$Id$" -import sys +import os, sys WARN = 1 DEBUG = 2 @@ -134,6 +134,7 @@ class GLRecord(dict): def __init__(self, date=None, **kw): kw['ts'] = date or self.GLDate() + kw['gid'] = kw.get('gid') or os.getpid() dict.__init__(self, kw) def __str__(self):