MCPcopy Index your code
hub / github.com/keploy/keploy / CurrentScope

Method CurrentScope

utils/log/logger.go:598–605  ·  view source on GitHub ↗

CurrentScope reports the scope currently in effect (last value passed to RotateForScope), or "" if no rotation has happened.

()

Source from the content-addressed store, hash-verified

596// CurrentScope reports the scope currently in effect (last value
597// passed to RotateForScope), or "" if no rotation has happened.
598func (s *DebugFileSink) CurrentScope() string {
599 if s == nil {
600 return ""
601 }
602 s.mu.Lock()
603 defer s.mu.Unlock()
604 return s.currentScope
605}
606
607// globalSinkHolder lets atomic.Value store the same concrete type for
608// the package-wide debug file sink (atomic.Value panics on type

Callers 1

Calls

no outgoing calls

Tested by 1