* Moving mlog to corelibs

* Regenerating app layers

* Fix golangci-lint problem

* Fixing golangci-lint errors

* Renaming from corelibs to shared

* Renaming from corelibs to shared

* Fixing import

* Fixing merge problems

* Fixing build
Этот коммит содержится в:
Jesús Espino
2021-03-05 09:18:37 +01:00
коммит произвёл GitHub
родитель b3498a1edf
Коммит 9cc5089af8
212 изменённых файлов: 194 добавлений и 195 удалений

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

@@ -17,8 +17,8 @@ import (
// Load the Postgres driver
_ "github.com/lib/pq"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
)
// MaxWriteLength defines the maximum length accepted for write to the Configurations or

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

@@ -6,8 +6,8 @@ package config
import (
"sync"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
)
// emitter enables threadsafe registration and broadcasting to configuration listeners

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

@@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
)
func TestEmitter(t *testing.T) {

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

@@ -13,8 +13,8 @@ import (
"github.com/splitio/go-client/v6/splitio/client"
"github.com/splitio/go-client/v6/splitio/conf"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
)
type FeatureFlagSyncParams struct {

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

@@ -11,8 +11,8 @@ import (
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
"github.com/mattermost/mattermost-server/v5/utils/fileutils"
)

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

@@ -8,7 +8,7 @@ import (
"strings"
"sync"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
)
type LogSrcListener func(old, new mlog.LogTargetCfg)

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

@@ -11,8 +11,8 @@ import (
"github.com/lib/pq"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
"github.com/mattermost/mattermost-server/v5/testlib"
)

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

@@ -6,7 +6,7 @@ package config
import (
"fmt"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
)
type splitLogger struct {

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

@@ -8,9 +8,9 @@ import (
"reflect"
"strings"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/shared/i18n"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
"github.com/mattermost/mattermost-server/v5/utils"
)

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

@@ -9,7 +9,7 @@ import (
"github.com/fsnotify/fsnotify"
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v5/mlog"
"github.com/mattermost/mattermost-server/v5/shared/mlog"
)
// watcher monitors a file for changes