Skip to content

Commit c7d9ca5

Browse files
committed
chore: add log error on each xray failure
1 parent d0e9c62 commit c7d9ca5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/xray/jobs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ func (x *Xray) checkXrayHealth(baseCtx context.Context) {
9797
}
9898

9999
consecutiveFailures++
100+
log.Printf("xray health check failure %d/%d: %v", consecutiveFailures, maxFailures, err)
100101
// Only restart after multiple consecutive failures
101102
if consecutiveFailures >= maxFailures {
102103
log.Printf("xray health check failed %d times, restarting...", consecutiveFailures)

0 commit comments

Comments
 (0)