We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 536215a commit 3d65aedCopy full SHA for 3d65aed
1 file changed
backend/xray/jobs.go
@@ -57,6 +57,14 @@ func (x *Xray) checkXrayStatus(baseCtx context.Context) error {
57
58
// No error in logs, check API
59
if !x.core.Started() {
60
+ ctx, cancel := context.WithTimeout(baseCtx, 3*time.Second)
61
+ err := x.extractError(ctx)
62
+ cancel()
63
+
64
+ if err != nil {
65
+ return err // Error found in logs
66
+ }
67
68
return errors.New("xray process stopped")
69
}
70
0 commit comments