summaryrefslogtreecommitdiff
path: root/pkg/api/server/server.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-11-18 16:06:02 -0700
committerJhon Honce <jhonce@redhat.com>2020-11-19 14:42:56 -0700
commitd8795a36b2ed8c53f0597ab14f46935ea977e84b (patch)
tree3e11b6e0e67df7955532aae1efc4a2f1eb34c4b3 /pkg/api/server/server.go
parenta18365c908d45a8ee9348c5e32a240a7b9a4091b (diff)
downloadpodman-d8795a36b2ed8c53f0597ab14f46935ea977e84b.tar.gz
podman-d8795a36b2ed8c53f0597ab14f46935ea977e84b.tar.bz2
podman-d8795a36b2ed8c53f0597ab14f46935ea977e84b.zip
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>
Diffstat (limited to 'pkg/api/server/server.go')
-rw-r--r--pkg/api/server/server.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/api/server/server.go b/pkg/api/server/server.go
index 64008767b..09b6079e4 100644
--- a/pkg/api/server/server.go
+++ b/pkg/api/server/server.go
@@ -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)