Skip to content

Commit

Permalink
Changed debug logging default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
MWinther committed Dec 7, 2013
1 parent e7583bd commit 82102a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mw_greylist/log.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
from syslog import *
import sys


class Log(object):

def __init__(self):
self.facility = LOG_MAIL
self.log_debug_messages = True
self.log_debug_messages = False
self.session_id = None

def open(self):
#openlog(sys.argv[0].split('/')[-1], 0, self.facility)
openlog('mw_greylist', 0, self.facility)
if self.log_debug_messages == False:
if not self.log_debug_messages:
setlogmask(LOG_UPTO(LOG_INFO))

def write(self, message, level=LOG_INFO):
Expand Down

0 comments on commit 82102a7

Please sign in to comment.