if stanza.getType() == "error":
                    if stream["direction"][0] == "<":
                        conn.Event(self.DBG_LINE, "ERROR ON RECEIVE", stream)
                    else:
                        conn.Event(self.DBG_LINE, "ERROR ON SEND", stream)