diff options
Diffstat (limited to 'api4/webhook.go')
-rw-r--r-- | api4/webhook.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/api4/webhook.go b/api4/webhook.go index a0e7b5785..fadc3fbf3 100644 --- a/api4/webhook.go +++ b/api4/webhook.go @@ -4,16 +4,15 @@ package api4 import ( + "fmt" "io" "net/http" "strings" - l4g "github.com/alecthomas/log4go" - "github.com/gorilla/mux" "github.com/gorilla/schema" + "github.com/mattermost/mattermost-server/mlog" "github.com/mattermost/mattermost-server/model" - "github.com/mattermost/mattermost-server/utils" ) func (api *API) InitWebhook() { @@ -492,7 +491,7 @@ func incomingWebhook(c *Context, w http.ResponseWriter, r *http.Request) { } if c.App.Config().LogSettings.EnableWebhookDebugging { - l4g.Debug(utils.T("api.webhook.incoming.debug"), incomingWebhookPayload.ToJson()) + mlog.Debug(fmt.Sprint("Incoming webhook received. Content=", incomingWebhookPayload.ToJson())) } err = c.App.HandleIncomingWebhook(id, incomingWebhookPayload) |