mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-15 00:19:24 +01:00
Add extra debug to log time spent sending a message per bridge (#1299)
This commit is contained in:
parent
c23252ab53
commit
eff41759bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user