GH-12049 use structured logging (#12258)
Этот коммит содержится в:
коммит произвёл
Ben Schumacher
родитель
7ba491ac2d
Коммит
d0a138a35e
@@ -1419,7 +1419,7 @@ func (s SqlChannelStore) IsUserInChannelUseCache(userId string, channelId string
|
|||||||
|
|
||||||
ids, err := s.GetAllChannelMembersForUser(userId, true, false)
|
ids, err := s.GetAllChannelMembersForUser(userId, true, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
mlog.Error("SqlChannelStore.IsUserInChannelUseCache: " + err.Error())
|
mlog.Error("Error getting all channel members for user", mlog.Err(err))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1917,7 +1917,7 @@ func (s SqlChannelStore) GetChannelsByIds(channelIds []string) ([]*model.Channel
|
|||||||
_, err := s.GetReplica().Select(&channels, query, params)
|
_, err := s.GetReplica().Select(&channels, query, params)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
mlog.Error(fmt.Sprint(err))
|
mlog.Error("Query error getting channels by ids", mlog.Err(err))
|
||||||
return nil, model.NewAppError("SqlChannelStore.GetChannelsByIds", "store.sql_channel.get_channels_by_ids.app_error", nil, "", http.StatusInternalServerError)
|
return nil, model.NewAppError("SqlChannelStore.GetChannelsByIds", "store.sql_channel.get_channels_by_ids.app_error", nil, "", http.StatusInternalServerError)
|
||||||
}
|
}
|
||||||
return channels, nil
|
return channels, nil
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user