Cleanup debug messages

This commit is contained in:
Wim 2016-09-20 00:21:14 +02:00
parent 98ff59c716
commit d02a737e0c
2 changed files with 2 additions and 1 deletions

View File

@ -91,6 +91,7 @@ func (b *Birc) Origin() string {
}
func (b *Birc) Send(msg config.Message) error {
flog.Debugf("Receiving %#v", msg)
if msg.FullOrigin == b.FullOrigin() {
return nil
}

View File

@ -105,7 +105,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest bridge.Bridge) {
return
}
gw.modifyMessage(&msg, dest)
log.Debugf("sending %#v from %s to %s", msg, msg.Origin, dest.Origin())
log.Debugf("Sending %#v from %s to %s", msg, msg.FullOrigin, dest.FullOrigin())
dest.Send(msg)
}
}