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

Method captureRuntimeLogLine

backend/xray/log.go:71–81  ·  view source on GitHub ↗
(output string)

Source from the content-addressed store, hash-verified

69}
70
71func (c *Core) captureRuntimeLogLine(output string) {
72 c.RecordRuntimeLog(output)
73 // Non-blocking send: skip if channel is full to prevent deadlock
74 select {
75 case c.logsChan <- output:
76 // Log sent successfully
77 default:
78 // Channel full, skip this log (prevents blocking xray process)
79 }
80 c.detectLogType(output)
81}

Callers 2

captureProcessLogsMethod · 0.95
recordProcessLogMethod · 0.95

Calls 2

RecordRuntimeLogMethod · 0.95
detectLogTypeMethod · 0.95

Tested by

no test coverage detected