Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-07-09 00:08:00 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-07-09 00:47:49 +0300
commitf1500a5d313aac35121981046327396d237a4946 (patch)
tree04cecd968ccac48aa12a8769c28d62a0bc2672ff /xray/api.go
parentc9a218d0604876dbbd5adf076750b3fb8fa3811c (diff)
improved - message logs
Diffstat (limited to 'xray/api.go')
-rw-r--r--xray/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xray/api.go b/xray/api.go
index 2dce4dcb..d7d916d3 100644
--- a/xray/api.go
+++ b/xray/api.go
@@ -183,6 +183,7 @@ func (x *XrayAPI) GetTraffic(reset bool) ([]*Traffic, []*ClientTraffic, error) {
resp, err := (*x.StatsServiceClient).QueryStats(ctx, &statsService.QueryStatsRequest{Reset_: reset})
if err != nil {
+ logger.Debug("Failed to query Xray stats:", err)
return nil, nil, err
}
@@ -196,7 +197,6 @@ func (x *XrayAPI) GetTraffic(reset bool) ([]*Traffic, []*ClientTraffic, error) {
processClientTraffic(matches, stat.Value, emailTrafficMap)
}
}
-
return mapToSlice(tagTrafficMap), mapToSlice(emailTrafficMap), nil
}