diff --git a/app/post.go b/app/post.go index 39c1e1d86b..e33e564f6b 100644 --- a/app/post.go +++ b/app/post.go @@ -135,7 +135,6 @@ func (a *App) CreatePost(post *model.Post, channel *model.Channel, triggerWebhoo post.Hashtags, _ = model.ParseHashtags(post.Message) - mlog.Debug(model.StringInterfaceToJson(post.Props)) if err := a.FillInPostProps(post, channel); err != nil { return nil, err } @@ -160,7 +159,6 @@ func (a *App) CreatePost(post *model.Post, channel *model.Channel, triggerWebhoo } } - mlog.Debug(model.StringInterfaceToJson(post.Props)) result = <-a.Srv.Store.Post().Save(post) if result.Err != nil { return nil, result.Err diff --git a/app/webhook.go b/app/webhook.go index c9d250cdaf..ea25ae5dab 100644 --- a/app/webhook.go +++ b/app/webhook.go @@ -261,8 +261,6 @@ func (a *App) CreateWebhookPost(userId string, channel *model.Channel, text, ove } } - mlog.Debug(model.StringInterfaceToJson(post.Props)) - if len(props) > 0 { for key, val := range props { if key == "attachments" { @@ -275,15 +273,12 @@ func (a *App) CreateWebhookPost(userId string, channel *model.Channel, text, ove } } - mlog.Debug(model.StringInterfaceToJson(post.Props)) - splits, err := SplitWebhookPost(post, a.MaxPostSize()) if err != nil { return nil, err } for _, split := range splits { - mlog.Debug(model.StringInterfaceToJson(split.Props)) if _, err := a.CreatePostMissingChannel(split, false); err != nil { return nil, model.NewAppError("CreateWebhookPost", "api.post.create_webhook_post.creating.app_error", nil, "err="+err.Message, http.StatusInternalServerError) } @@ -606,16 +601,13 @@ func (a *App) HandleIncomingWebhook(hookId string, req *model.IncomingWebhookReq req.Props["webhook_display_name"] = hook.DisplayName - mlog.Debug(req.ToJson()) text = a.ProcessSlackText(text) req.Attachments = a.ProcessSlackAttachments(req.Attachments) - mlog.Debug(req.ToJson()) // attachments is in here for slack compatibility if len(req.Attachments) > 0 { req.Props["attachments"] = req.Attachments webhookType = model.POST_SLACK_ATTACHMENT } - mlog.Debug(model.StringInterfaceToJson(req.Props)) var channel *model.Channel var cchan store.StoreChannel