diff -r d0aca7894fc5 -r ca82d0fee336 log_formatter.py --- a/log_formatter.py Wed Feb 11 21:50:03 2009 +0200 +++ b/log_formatter.py Wed Feb 11 21:55:10 2009 +0200 @@ -208,16 +208,16 @@ for line in lines : # extra args extra = {} + + # default to line.type + type = line.type - # specialcase type? + # special formatting for unset-Topic if line.type == LogTypes.TOPIC and line.data is None : type = 'TOPIC_UNSET' - else : - type = line.type - # format netsplit stuff - if line.type & LogTypes._NETSPLIT_MASK : + elif line.type & LogTypes._NETSPLIT_MASK : # format the netsplit-targets stuff extra['_netsplit_targets'] = line.data