1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-07-15 23:54:29 +02:00

Bump Logr version to fix Windows build (#520)

* bump Logr version to fix Windows build

* fix return args for syslog_unsupported
This commit is contained in:
Doug Lauder
2021-06-04 02:43:32 -04:00
committed by GitHub
parent fa6fa9dada
commit 68d492a855
7 changed files with 20 additions and 22 deletions

View File

@ -10,6 +10,7 @@ import (
"github.com/google/uuid"
"github.com/mattermost/focalboard/server/server"
"github.com/mattermost/focalboard/server/services/config"
"github.com/mattermost/focalboard/server/services/mlog"
"github.com/webview/webview"
)
@ -30,6 +31,8 @@ func getFreePort() (int, error) {
}
func runServer(port int) (*server.Server, error) {
logger := mlog.NewLogger()
server, err := server.New(&config.Configuration{
ServerRoot: fmt.Sprintf("http://localhost:%d", port),
Port: port,
@ -48,7 +51,7 @@ func runServer(port int) (*server.Server, error) {
EnableLocalMode: false,
LocalModeSocketLocation: "",
AuthMode: "native",
}, sessionToken)
}, sessionToken, logger)
if err != nil {
fmt.Println("ERROR INITIALIZING THE SERVER", err)
return nil, err