Skip to content

Commit

Permalink
Add XSC version log
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Sep 8, 2023
1 parent 5119d42 commit 1f8eabc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xray/services/xray.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ func (sm *XrayServicesManager) IsXscEnabled() (xsxVersion string, err error) {
err = errorutils.CheckErrorf("failed to get XSC version, response: " + err.Error())
return
}
log.Debug("XSC response:", resp.Status)
if err = errorutils.CheckResponseStatusWithBody(resp, body, http.StatusOK, http.StatusNotFound); err != nil {
return
}
Expand All @@ -209,5 +208,7 @@ func (sm *XrayServicesManager) IsXscEnabled() (xsxVersion string, err error) {
err = errorutils.CheckErrorf("failed to unmarshal XSC server response: " + err.Error())
return
}
return versionResponse.Version, err
xsxVersion = versionResponse.Version
log.Debug("XSC version:", xsxVersion)
return
}

0 comments on commit 1f8eabc

Please sign in to comment.