Remove debug print-out

disco_info_form
Mickael Remond 5 years ago committed by Mickaël Rémond
parent 2e864ff7f6
commit 80d2e0fa1e

@ -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++
}

@ -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")
}
}

@ -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

Loading…
Cancel
Save