def _handle_packet(self, packet):
events = packet_events(packet)<EOL>for event in events:<EOL><INDENT>if self.ignore_event(event['<STR_LIT:id>']):<EOL><INDENT>log.debug('<STR_LIT>', event)<EOL>continue<EOL><DEDENT>log.debug('<STR_LIT>', event)<EOL>if self.event_callback:<EOL><INDENT>self.event_callback(event)<EOL><DEDENT>else:<EOL><INDENT>self.handle_event(event)<EOL><DEDENT><DEDENT>
Event specific packet handling logic.

        Break packet into events and fires configured event callback or
        nicely prints events for console.