1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-01 23:47:50 +00:00

Display error output from dynamiclistener.Server.

This commit is contained in:
Eric Promislow
2024-09-04 10:25:44 -07:00
parent ea6c83b279
commit 69906c52af
3 changed files with 5 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"os"
"github.com/rancher/dynamiclistener/server"
"github.com/rancher/steve/pkg/debug"
stevecli "github.com/rancher/steve/pkg/server/cli"
"github.com/rancher/steve/pkg/version"
@@ -38,5 +39,5 @@ func run(_ *cli.Context) error {
if err != nil {
return err
}
return s.ListenAndServe(ctx, config.HTTPSListenPort, config.HTTPListenPort, nil)
return s.ListenAndServe(ctx, config.HTTPSListenPort, config.HTTPListenPort, &server.ListenOpts{DisplayServerLogs: true})
}