MCPcopy
hub / github.com/docker/docker-agent / logger

Method logger

pkg/tools/lifecycle/supervisor.go:142–147  ·  view source on GitHub ↗

logger returns p.Logger or slog.Default if nil.

()

Source from the content-addressed store, hash-verified

140
141// logger returns p.Logger or slog.Default if nil.
142func (p Policy) logger() *slog.Logger {
143 if p.Logger != nil {
144 return p.Logger
145 }
146 return slog.Default()
147}
148
149// Supervisor manages the lifecycle of a single connection: initial connect,
150// watcher goroutine, restart with backoff, graceful Stop. It is the shared

Callers 3

StartMethod · 0.80
watchMethod · 0.80
tryRestartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected