diff options
| author | klm | 1998-03-30 14:58:39 +0000 |
|---|---|---|
| committer | klm | 1998-03-30 14:58:39 +0000 |
| commit | eddd771a5dcecfaa7273a20d154918077e5c0770 (patch) | |
| tree | 1b1ba4340c5b86d44697fedda5ff858f4ace4734 | |
| parent | 75328e82381b1fb70aab79f71b79d7c21a65d845 (diff) | |
| download | mailman-eddd771a5dcecfaa7273a20d154918077e5c0770.tar.gz mailman-eddd771a5dcecfaa7273a20d154918077e5c0770.tar.zst mailman-eddd771a5dcecfaa7273a20d154918077e5c0770.zip | |
Utilizing mm_utils.StampedLogger() on stderr for debugging, instead of
explicit (prone-to-failure) file.
(Note that this file is being deprecated, nonetheless.)
| -rwxr-xr-x | cgi/archives | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cgi/archives b/cgi/archives index 99e79ad91..28c2106e6 100755 --- a/cgi/archives +++ b/cgi/archives @@ -1,11 +1,19 @@ #!/usr/local/bin/python # We don't need to lock in this script, because we're never going to change data. -import sys, os, types, posix, string -sys.stderr = sys.stdout +import sys sys.path.append('/home/mailman/mailman/modules') + +import os, types, posix, string import mm_utils, maillist, htmlformat +try: + sys.stderr = mm_utils.StampedLogger("error", label = 'mmroster', + manual_reprime=1, nofail=0) +except IOError: + pass # Oh well - SOL on redirect, errors show thru. + + print "Content-type: text/html" print |
