summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklm1998-03-30 05:07:15 +0000
committerklm1998-03-30 05:07:15 +0000
commit5bc5ce77a431cd700b0c75f29bf894f62caa575e (patch)
tree67be35544342588887972886444e4027b4c6d28e
parent437d246a3323e15d72123155f4a66516a0ef2348 (diff)
downloadmailman-5bc5ce77a431cd700b0c75f29bf894f62caa575e.tar.gz
mailman-5bc5ce77a431cd700b0c75f29bf894f62caa575e.tar.zst
mailman-5bc5ce77a431cd700b0c75f29bf894f62caa575e.zip
Using StampedLogger (to logs/error) for stderr, for debugging.
Refined module doc string a bit.
-rwxr-xr-xscripts/mailcmd14
-rwxr-xr-xscripts/request14
2 files changed, 16 insertions, 12 deletions
diff --git a/scripts/mailcmd b/scripts/mailcmd
index edbb9e961..2e0751ee0 100755
--- a/scripts/mailcmd
+++ b/scripts/mailcmd
@@ -1,10 +1,11 @@
#! /usr/local/bin/python
-"""Handle emailed request commands.
-
+"""Process emailed commands.
Called by the wrapper, stdin is the mail message, and argv[1] is the name
-of the target mailing list."""
+of the target mailing list.
+
+Errors are redirected to logs/errors."""
import sys
@@ -13,9 +14,10 @@ sys.path.append('/home/mailman/mailman/modules')
import maillist, mm_utils
try:
- sys.stderr = mm_utils.StampedLogger("error", label='scripts/mailcmd')
-except IOError, reason:
- pass # SOL on redirecting.
+ sys.stderr = mm_utils.StampedLogger("error", label = 'mailcmd',
+ manual_reprime=1)
+except IOError:
+ pass # Oh well - SOL on redirect, errors show thru.
# Only let one program run at once per list.
diff --git a/scripts/request b/scripts/request
index edbb9e961..2e0751ee0 100755
--- a/scripts/request
+++ b/scripts/request
@@ -1,10 +1,11 @@
#! /usr/local/bin/python
-"""Handle emailed request commands.
-
+"""Process emailed commands.
Called by the wrapper, stdin is the mail message, and argv[1] is the name
-of the target mailing list."""
+of the target mailing list.
+
+Errors are redirected to logs/errors."""
import sys
@@ -13,9 +14,10 @@ sys.path.append('/home/mailman/mailman/modules')
import maillist, mm_utils
try:
- sys.stderr = mm_utils.StampedLogger("error", label='scripts/mailcmd')
-except IOError, reason:
- pass # SOL on redirecting.
+ sys.stderr = mm_utils.StampedLogger("error", label = 'mailcmd',
+ manual_reprime=1)
+except IOError:
+ pass # Oh well - SOL on redirect, errors show thru.
# Only let one program run at once per list.