changeset 2988:1c16c1c3349e

use logging module for antispam, not stderr (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Jan 2008 16:06:43 +0100
parents c817a9c0d0e5
children c678e73b7730
files MoinMoin/security/antispam.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/security/antispam.py	Sun Jan 06 16:05:36 2008 +0100
+++ b/MoinMoin/security/antispam.py	Sun Jan 06 16:06:43 2008 +0100
@@ -11,6 +11,7 @@
 
 import re, sys, time, datetime
 import sets
+import logging
 
 from MoinMoin.security import Permissions
 from MoinMoin import caching, wikiutil
@@ -42,7 +43,7 @@
     if debug:
         if isinstance(s, unicode):
             s = s.encode('utf-8')
-        sys.stderr.write('%s\n' % s)
+        logging.debug('%s\n' % s)
 
 
 def makelist(text):