[MM-55480] Update logr to v2.0.21 (#25431)

Этот коммит содержится в:
Ben Schumacher
2023-11-23 10:30:08 +01:00
коммит произвёл GitHub
родитель 7848ea8e19
Коммит e99ded1635
34 изменённых файлов: 115 добавлений и 109 удалений

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

@@ -8,9 +8,9 @@ import (
"strings"
"time"
"github.com/mattermost/logr/v2"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/i18n"
"github.com/mattermost/mattermost/server/public/shared/mlog"
"github.com/mattermost/mattermost/server/public/shared/request"
"github.com/mattermost/mattermost/server/v8/channels/app"
"github.com/mattermost/mattermost/server/v8/platform/shared/filestore"
@@ -86,7 +86,7 @@ func (*ExportLinkProvider) DoCommand(a *app.App, c request.CTX, args *model.Comm
}
t, err := b.FileModTime(f)
if err != nil {
a.Log().Warn("Failed to get file mod time", logr.String("file", f), logr.Err(err))
a.Log().Warn("Failed to get file mod time", mlog.String("file", f), mlog.Err(err))
continue
}
if t.After(latestFound) {