Remove debug print-out

This commit is contained in:
Mickael Remond 2019-07-31 18:54:49 +02:00 committed by Mickaël Rémond
parent 2e864ff7f6
commit 80d2e0fa1e
3 changed files with 0 additions and 6 deletions

View File

@ -252,14 +252,12 @@ func (c *Client) recv(state SMState, keepaliveQuit chan<- struct{}) (err error)
return errors.New("stream error: " + packet.Error.Local)
// Process Stream management nonzas
case stanza.SMRequest:
fmt.Println("MREMOND: inbound: ", state.Inbound)
answer := stanza.SMAnswer{XMLName: xml.Name{
Space: stanza.NSStreamManagement,
Local: "a",
}, H: state.Inbound}
c.Send(answer)
default:
fmt.Println(packet)
state.Inbound++
}

View File

@ -195,7 +195,6 @@ func (s *Session) resume(o Config) bool {
}
return true
case stanza.SMFailed:
fmt.Println("MREMOND SM Failed")
default:
s.err = errors.New("unexpected reply to SM resume")
}
@ -272,7 +271,6 @@ func (s *Session) EnableStreamManagement(o Config) {
case stanza.SMFailed:
// TODO: Store error in SMState, for later inspection
default:
fmt.Println(p)
s.err = errors.New("unexpected reply to SM enable")
}
}

View File

@ -2,7 +2,6 @@ package stanza
import (
"encoding/xml"
"fmt"
)
/*
@ -99,7 +98,6 @@ func (iq *IQ) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
var xmppError Err
err = d.DecodeElement(&xmppError, &tt)
if err != nil {
fmt.Println(err)
return err
}
iq.Error = xmppError