From b7e2cf1f3fc568b60a8bada54a43fde96c6f3068 Mon Sep 17 00:00:00 2001 From: klm Date: Mon, 30 Mar 1998 14:59:36 +0000 Subject: Utilizing mm_utils.StampedLogger() on stderr for debugging, instead of redirecting sys.stderr to sys.stdout. --- cgi/edithtml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cgi/edithtml') 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. -- cgit v1.2.3-70-g09d2