MM-36764 mlog refactor (#18118)
Refactor mlog - simplify mlog by removing redundant code - remove Zap dependency - update unit test helpers - update logging config - update auditing
Этот коммит содержится в:
@@ -4,8 +4,8 @@
|
||||
package einterfaces
|
||||
|
||||
import (
|
||||
"github.com/mattermost/logr"
|
||||
"github.com/mattermost/mattermost-server/v6/model"
|
||||
"github.com/mattermost/mattermost-server/v6/shared/mlog"
|
||||
)
|
||||
|
||||
type MetricsInterface interface {
|
||||
@@ -66,7 +66,7 @@ type MetricsInterface interface {
|
||||
ObservePluginAPIDuration(pluginID, apiName string, success bool, elapsed float64)
|
||||
|
||||
ObserveEnabledUsers(users int64)
|
||||
GetLoggerMetricsCollector() logr.MetricsCollector
|
||||
GetLoggerMetricsCollector() mlog.MetricsCollector
|
||||
|
||||
IncrementRemoteClusterMsgSentCounter(remoteID string)
|
||||
IncrementRemoteClusterMsgReceivedCounter(remoteID string)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
package mocks
|
||||
|
||||
import (
|
||||
logr "github.com/mattermost/logr"
|
||||
logr "github.com/mattermost/logr/v2"
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
|
||||
model "github.com/mattermost/mattermost-server/v6/model"
|
||||
|
||||
Ссылка в новой задаче
Block a user