summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index 6a46ecf8..c1440c05 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -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