mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
GH-12049 use structured logging (#12258)
This commit is contained in:
committed by
Ben Schumacher
parent
7ba491ac2d
commit
d0a138a35e
@@ -1419,7 +1419,7 @@ func (s SqlChannelStore) IsUserInChannelUseCache(userId string, channelId string
|
||||
|
||||
ids, err := s.GetAllChannelMembersForUser(userId, true, false)
|
||||
if err != nil {
|
||||
mlog.Error("SqlChannelStore.IsUserInChannelUseCache: " + err.Error())
|
||||
mlog.Error("Error getting all channel members for user", mlog.Err(err))
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -1917,7 +1917,7 @@ func (s SqlChannelStore) GetChannelsByIds(channelIds []string) ([]*model.Channel
|
||||
_, err := s.GetReplica().Select(&channels, query, params)
|
||||
|
||||
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 channels, nil
|
||||
|
||||
Reference in New Issue
Block a user