def emit(self, eventDict):
        text = log.textFromEventDict(eventDict)
        
        if text is None:
            return
        
        if not eventDict.has_key('logLevel'):
            eventDict['logLevel'] = 'INFO'
        elif logLevel.has_key(eventDict['logLevel']):
            if self.level < eventDict['logLevel']:
                return
            
            eventDict['logLevel'] = logLevel[eventDict['logLevel']]
            
        timeStr = self.formatTime(eventDict['time'])
        fmtDict = {'system': eventDict['system'], 'text': text.replace("\n", "\n\t"),
                   'logLevel': eventDict['logLevel']}
        msgStr = log._safeFormat("[%(logLevel)s] [%(system)s] %(text)s\n", fmtDict)

        util.untilConcludes(self.write, timeStr + " " + msgStr)
        util.untilConcludes(self.flush)  # Hoorj!
dataset/ETHPy150Open selfsk/nodeset.core/src/nodeset/common/log.py/NodeSetLogObserver.emit/swapped operands of `<`