diff options
| author | bwarsaw | 1999-12-13 22:14:59 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-12-13 22:14:59 +0000 |
| commit | f3d8aaa8baabc659c54035a7cb24b9863b3f3d02 (patch) | |
| tree | 785c2ac503364bac7f61e9744c1a880fdce1745d | |
| parent | 2048d6999bddcb4e4d2f8bf023c35b88994e6112 (diff) | |
| download | mailman-f3d8aaa8baabc659c54035a7cb24b9863b3f3d02.tar.gz mailman-f3d8aaa8baabc659c54035a7cb24b9863b3f3d02.tar.zst mailman-f3d8aaa8baabc659c54035a7cb24b9863b3f3d02.zip | |
| -rw-r--r-- | Mailman/Logging/StampedLogger.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Logging/StampedLogger.py b/Mailman/Logging/StampedLogger.py index 2b13a4294..7c3654900 100644 --- a/Mailman/Logging/StampedLogger.py +++ b/Mailman/Logging/StampedLogger.py @@ -14,6 +14,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +import os import time from Logger import Logger @@ -66,7 +67,7 @@ class StampedLogger(Logger): else: label = "%s:" % self.__label prefix = stamp + label - Logger.write(self, "%s %s" % (prefix, msg)) + Logger.write(self, "%s(%d) %s" % (prefix, os.getpid(), msg)) if msg and msg[-1] == '\n': self.__bol = 1 else: |
