Changeset 38:db0987cbb72d in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
12/17/08 14:19:41 (10 years ago)
Author:
Nikolas Tautenhahn <nik@…>
Branch:
default
Message:

create more output when things are not-so-good

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh.py

    r37 r38  
    9595        try: 
    9696            for (server, data) in self.readlines(): 
    97                 datestring = self.re_find_date.findall(data)[0] 
    98                 utclogdate = self.apachedate2utc(datestring) 
    99                 self.add(LogLine((utclogdate, server, data))) 
     97                try: 
     98                    datestring = self.re_find_date.findall(data)[0] 
     99                    utclogdate = self.apachedate2utc(datestring) 
     100                    self.add(LogLine((utclogdate, server, data))) 
     101                except Exception, exc: 
     102                    print server, data 
     103                    raise 
    100104        except Exception, exc: 
    101105            self.flushall()