Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit c807ccd47813c26776f25d4f4d74fd6ebf51f195 Author: Wim <wim@42.be> Date: Sun Nov 22 17:20:20 2020 +0000 Add extra debug to log time spent sending a message per bridge (#1299) diff --git a/gateway/gateway.go b/gateway/gateway.go index 6a46ecf..c1440c0 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -4776 +47710 @@ 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