# HG changeset patch # User jasoka@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1217526801 0 # Node ID 6f9c7d0b35d4c14c560da463a770a80f02114d0e # Parent 0c6fe081ca86f306ebc86ec2db4d63c559bb36c1 logger now ignores non-existing log modules (warns to prompt) diff -r 0c6fe081ca86 -r 6f9c7d0b35d4 engine/extensions/fifelog.py --- a/engine/extensions/fifelog.py Thu Jul 31 17:43:40 2008 +0000 +++ b/engine/extensions/fifelog.py Thu Jul 31 17:53:21 2008 +0000 @@ -37,8 +37,11 @@ self.lm.addVisibleModule(k) else: for m in names: - self.lm.addVisibleModule(self.name2mod[m]) - + try: + self.lm.addVisibleModule(self.name2mod[m]) + except KeyError: + print 'Tried to enable non-existing log module "%s"' % m + def removeVisibleModules(self, *names): ''' Removes modules that are visible in logs. By default, all modules