mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
Make podman service log events
* Log endpoint calls at level Info * Ensure API server started at level Info Fixes #8390 Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -51,10 +51,7 @@ func NewServer(runtime *libpod.Runtime) (*APIServer, error) {
|
||||
}
|
||||
|
||||
// NewServerWithSettings will create and configure a new API server using provided settings
|
||||
func NewServerWithSettings(runtime *libpod.Runtime, duration time.Duration, listener *net.Listener) (
|
||||
*APIServer,
|
||||
error,
|
||||
) {
|
||||
func NewServerWithSettings(runtime *libpod.Runtime, duration time.Duration, listener *net.Listener) (*APIServer, error) {
|
||||
return newServer(runtime, duration, listener)
|
||||
}
|
||||
|
||||
@ -75,6 +72,7 @@ func newServer(runtime *libpod.Runtime, duration time.Duration, listener *net.Li
|
||||
listener = &listeners[0]
|
||||
}
|
||||
|
||||
logrus.Infof("API server listening on %q", (*listener).Addr())
|
||||
router := mux.NewRouter().UseEncodedPath()
|
||||
idle := idle.NewTracker(duration)
|
||||
|
||||
|
Reference in New Issue
Block a user