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

Method captureStartupLogLine

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

Source from the content-addressed store, hash-verified

56}
57
58func (c *Core) captureStartupLogLine(output string) {
59 c.RecordStartupLog(output)
60
61 // Non-blocking send: skip if channel is full to prevent deadlock
62 select {
63 case c.logsChan <- output:
64 // Log sent successfully
65 default:
66 // Channel full, skip this log (prevents blocking xray process)
67 }
68 c.detectLogType(output)
69}
70
71func (c *Core) captureRuntimeLogLine(output string) {
72 c.RecordRuntimeLog(output)

Callers 2

captureProcessLogsMethod · 0.95
recordProcessLogMethod · 0.95

Calls 2

RecordStartupLogMethod · 0.95
detectLogTypeMethod · 0.95

Tested by

no test coverage detected