diff options
| author | bwarsaw | 2000-04-03 00:34:59 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-04-03 00:34:59 +0000 |
| commit | 3f3ae97d6fd9e6d64d7c5192a28e02d9e2a3e5c6 (patch) | |
| tree | eb3c08ed5ded2187c8deb4a847abc35a67fad304 /Mailman/Logging/Logger.py | |
| parent | 838bfb9ca3afcfd0405bd5a9b6fc5f1c3cd932a3 (diff) | |
| download | mailman-3f3ae97d6fd9e6d64d7c5192a28e02d9e2a3e5c6.tar.gz mailman-3f3ae97d6fd9e6d64d7c5192a28e02d9e2a3e5c6.tar.zst mailman-3f3ae97d6fd9e6d64d7c5192a28e02d9e2a3e5c6.zip | |
Diffstat (limited to 'Mailman/Logging/Logger.py')
| -rw-r--r-- | Mailman/Logging/Logger.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mailman/Logging/Logger.py b/Mailman/Logging/Logger.py index 984c9c8fe..d0e40f4ac 100644 --- a/Mailman/Logging/Logger.py +++ b/Mailman/Logging/Logger.py @@ -18,8 +18,8 @@ import sys import os -import Mailman.mm_cfg -from Mailman.Utils import reraise + +from Mailman import mm_cfg from Mailman.Logging.Utils import _logexc @@ -33,7 +33,7 @@ class Logger: immediate=1 says to create the log file on instantiation. Otherwise, the file is created only when there are writes pending.""" - self.__filename = os.path.join(Mailman.mm_cfg.LOG_DIR, category) + self.__filename = os.path.join(mm_cfg.LOG_DIR, category) self.__fp = None self.__nofail = nofail if immediate: @@ -60,7 +60,7 @@ class Logger: _logexc(self, e) f = self.__fp = sys.__stderr__ else: - reraise() + raise return f def flush(self): |
