[MM-31359] remove duplicated error logs (#16583)

* remove duplicated error logs

* reflect review comments

* add context

* add error details
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2020-12-29 09:48:36 +03:00
коммит произвёл GitHub
родитель 727a158e9a
Коммит 40e16ba07f
19 изменённых файлов: 16 добавлений и 47 удалений

Просмотреть файл

@@ -21,7 +21,7 @@ func (api *API) getStatuses(req *model.WebSocketRequest) (map[string]interface{}
func (api *API) getStatusesByIds(req *model.WebSocketRequest) (map[string]interface{}, *model.AppError) {
var userIds []string
if userIds = model.ArrayFromInterface(req.Data["user_ids"]); len(userIds) == 0 {
mlog.Error(model.StringInterfaceToJson(req.Data))
mlog.Debug("Error while parsing user_ids", mlog.String("data", model.StringInterfaceToJson(req.Data)))
return nil, NewInvalidWebSocketParamError(req.Action, "user_ids")
}