def event(self, event): 
event.stream = self<EOL>logger.debug(u"<STR_LIT>".format(event))<EOL>self.settings["<STR_LIT>"].put(event)<EOL>return False<EOL>
Handle a stream event.

        Called when connection state is changed.

        Should not be called with self.lock acquired!