Remove debug print-out

This commit is contained in:
Mickael Remond 2019-07-31 18:54:49 +02:00
parent 1b3dec3902
commit 1c4dd6c967
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3
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) return errors.New("stream error: " + packet.Error.Local)
// Process Stream management nonzas // Process Stream management nonzas
case stanza.SMRequest: case stanza.SMRequest:
fmt.Println("MREMOND: inbound: ", state.Inbound)
answer := stanza.SMAnswer{XMLName: xml.Name{ answer := stanza.SMAnswer{XMLName: xml.Name{
Space: stanza.NSStreamManagement, Space: stanza.NSStreamManagement,
Local: "a", Local: "a",
}, H: state.Inbound} }, H: state.Inbound}
c.Send(answer) c.Send(answer)
default: default:
fmt.Println(packet)
state.Inbound++ state.Inbound++
} }

View File

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

View File

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