MCPcopy Create free account
hub / github.com/PasarGuard/node / RecordRuntimeLog

Method RecordRuntimeLog

backend/xray/startup_diagnostics.go:169–173  ·  view source on GitHub ↗
(line string)

Source from the content-addressed store, hash-verified

167}
168
169func (c *Core) RecordRuntimeLog(line string) {
170 c.runtimeMu.Lock()
171 defer c.runtimeMu.Unlock()
172 c.runtimeLogs.add(line)
173}
174
175func (c *Core) RuntimeLogTail(n int) []string {
176 c.runtimeMu.RLock()

Callers 1

captureRuntimeLogLineMethod · 0.95

Calls 1

addMethod · 0.80

Tested by

no test coverage detected