Changeset 25:1b19a61c0141 in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
11/27/08 16:46:32 (10 years ago)
Author:
Nikolas Tautenhahn <nik@…>
Branch:
default
Message:

removed debug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh.py

    r24 r25  
    1616 
    1717class Buffer(object): 
    18     def __init__(self, pattern='', gzip_logs=None, buffertime=5, stream=sys.stdin, debug=False): 
     18    def __init__(self, pattern='', gzip_logs=None, buffertime=5, stream=sys.stdin): 
    1919        self.pattern = pattern 
    2020        self.gzip_logs = gzip_logs 
     
    2626        if gzip_logs is not None and not pattern.endswith(".gz"): 
    2727            self.pattern = "%s.gz" % self.pattern 
    28         self.debug = debug 
    2928        self.handlevirtualhost = "%v" in pattern 
    3029 
    3130    def add(self, logline): 
    32         if self.debug: 
    33             debugfile = open("/tmp/liaalh_debug.log", "a") 
    34             debugfile.write("%s: %r\n" % (datetime.datetime.now().isoformat(), logline)) 
    35             debugfile.close() 
    3631        if not self.data or self.data[-1] <= logline: 
    3732            self.data.append(logline)