More debug

This commit is contained in:
Wim
2020-10-24 19:53:46 +02:00
parent 0fff9676de
commit 6a576e2c8d

View File

@@ -477,6 +477,10 @@ func (gw *Gateway) SendMessage(
gw.Router.MattermostPlugin <- msg
}
defer func(t time.Time) {
gw.logger.Debugf("=> Send from %s (%s) to %s (%s) took %s", msg.Account, rmsg.Channel, dest.Account, channel.Name, time.Since(t))
}(time.Now())
mID, err := dest.Send(msg)
if err != nil {
return mID, err