mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 02:42:51 +00:00
add debug log
This commit is contained in:
parent
f8c2e90e44
commit
1f3a7c947a
1 changed files with 1 additions and 0 deletions
|
|
@ -2488,6 +2488,7 @@ func (s *InboundService) syncWithSlaves(method string, path string, contentType
|
||||||
req.Header.Set("X-API-KEY", server.APIKey)
|
req.Header.Set("X-API-KEY", server.APIKey)
|
||||||
|
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
|
logger.Debug("debug req", req)
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Warningf("Failed to send request to server %s: %v", server.Name, err)
|
logger.Warningf("Failed to send request to server %s: %v", server.Name, err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue