You've already forked focalboard
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:
@ -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
|
||||
|
Reference in New Issue
Block a user