Make config file a start parameter

This commit is contained in:
Ruud committed 2011-08-31 16:10:12 +02:00
1 parent 9bc7b11210
commit 5b3f6adae0
4 files changed
+31 -17

No files matched your search

+5
View File
@@ -33,6 +33,11 @@ class CPLog():
return '[%+25.25s] %s' % (self.context[-25:], self.removePrivateData(msg))
def removePrivateData(self, msg):
try:
msg = unicode(msg)
except:
pass
for replace in self.replace_private:
msg = re.sub('(%s=)[^\&]+' % replace, '%s=xxx' % replace, msg)