summaryrefslogtreecommitdiff
path: root/Mailman/Archiver/Archiver.py
diff options
context:
space:
mode:
authorbwarsaw2000-06-02 22:51:19 +0000
committerbwarsaw2000-06-02 22:51:19 +0000
commit7306642a3af3519daa713912927a2d39bc9dfe0e (patch)
tree7ed9e6e23a835cc1ed0363ee26d946332d014dc9 /Mailman/Archiver/Archiver.py
parent6cfb73ad14f1152988d3b62b71c4c0a563cdc096 (diff)
downloadmailman-7306642a3af3519daa713912927a2d39bc9dfe0e.tar.gz
mailman-7306642a3af3519daa713912927a2d39bc9dfe0e.tar.zst
mailman-7306642a3af3519daa713912927a2d39bc9dfe0e.zip
Convert all uses of mlist.LogMsg() to the new syslog() interface.
Diffstat (limited to 'Mailman/Archiver/Archiver.py')
-rw-r--r--Mailman/Archiver/Archiver.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/Mailman/Archiver/Archiver.py b/Mailman/Archiver/Archiver.py
index 2603b5404..b12aa77a7 100644
--- a/Mailman/Archiver/Archiver.py
+++ b/Mailman/Archiver/Archiver.py
@@ -33,6 +33,7 @@ from Mailman import mm_cfg
from Mailman import Utils
from Mailman import Mailbox
from Mailman import LockFile
+from Mailman.Logging.Syslog import syslog
from Mailman.pythonlib.StringIO import StringIO
@@ -165,9 +166,8 @@ class Archiver:
mbox.AppendMessage(post)
mbox.fp.close()
except IOError, msg:
- self.LogMsg('error',
- 'Archive file access failure:\n\t%s %s' %
- (afn, msg))
+ syslog('error', 'Archive file access failure:\n\t%s %s' %
+ (afn, msg))
raise
finally:
if self.clobber_date:
@@ -181,9 +181,8 @@ class Archiver:
extarch.write(txt)
status = extarch.close()
if status:
- self.LogMsg('error',
- 'external archiver non-zero exit status: %d\n' %
- (status & 0xff00) >> 8)
+ syslog('error', 'external archiver non-zero exit status: %d\n' %
+ (status & 0xff00) >> 8)
#
# archiving in real time this is called from list.post(msg)