diff options
| author | klm | 1998-03-30 14:59:36 +0000 |
|---|---|---|
| committer | klm | 1998-03-30 14:59:36 +0000 |
| commit | b7e2cf1f3fc568b60a8bada54a43fde96c6f3068 (patch) | |
| tree | 5790d2ce6e1c3c783e885a69415ef46ab3dd7658 | |
| parent | eddd771a5dcecfaa7273a20d154918077e5c0770 (diff) | |
| download | mailman-b7e2cf1f3fc568b60a8bada54a43fde96c6f3068.tar.gz mailman-b7e2cf1f3fc568b60a8bada54a43fde96c6f3068.tar.zst mailman-b7e2cf1f3fc568b60a8bada54a43fde96c6f3068.zip | |
Utilizing mm_utils.StampedLogger() on stderr for debugging, instead of
redirecting sys.stderr to sys.stdout.
| -rwxr-xr-x | cgi/edithtml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cgi/edithtml b/cgi/edithtml index 75ba77929..01fef95a3 100755 --- a/cgi/edithtml +++ b/cgi/edithtml @@ -1,10 +1,16 @@ #!/usr/local/bin/python -import sys, os, cgi, string, crypt, types -sys.stderr = sys.stdout +import sys sys.path.append('/home/mailman/mailman/modules') +import os, cgi, string, crypt, types import mm_utils, maillist, mm_cfg import 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. + #Editable templates. We should also be able to edit the archive index, which #currently isn't a working template, but will be soon. |
