MCPcopy Create free account
hub / github.com/docker/secrets-engine / suffix

Function suffix

x/logging/logging.go:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func suffix() string {
81 _, file, line, ok := runtime.Caller(2)
82 if !ok {
83 return ""
84 }
85 return fmt.Sprintf("[%s:%d] ", file, line) // Note: Additionally set -trimpath when building to not leak anything from the file path
86}
87
88// Similar to debug.Stack() except it skips the top 3 frames which include the logger itself
89// to keep the logs focused on the actual relevant stack traces.

Callers 3

PrintfMethod · 0.85
WarnfMethod · 0.85
ErrorfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected