We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d846887 commit c644582Copy full SHA for c644582
backend/xray/log.go
@@ -33,7 +33,13 @@ func (c *Core) captureProcessLogs(ctx context.Context, pipe io.Reader) {
33
return // Exit gracefully if stop signal received
34
default:
35
output := scanner.Text()
36
- c.logsChan <- output
+ // Non-blocking send: skip if channel is full to prevent deadlock
37
+ select {
38
+ case c.logsChan <- output:
39
+ // Log sent successfully
40
+ default:
41
+ // Channel full, skip this log (prevents blocking xray process)
42
+ }
43
c.detectLogType(output)
44
}
45
0 commit comments