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/process.go
parentc9a218d0604876dbbd5adf076750b3fb8fa3811c (diff)
improved - message logs
Diffstat (limited to 'xray/process.go')
-rw-r--r--xray/process.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/xray/process.go b/xray/process.go
index f7c66f8a..db8509eb 100644
--- a/xray/process.go
+++ b/xray/process.go
@@ -60,14 +60,14 @@ func GetAccessPersistentPrevLogPath() string {
func GetAccessLogPath() (string, error) {
config, err := os.ReadFile(GetConfigPath())
if err != nil {
- logger.Warningf("Something went wrong: %s", err)
+ logger.Warningf("Failed to read configuration file: %s", err)
return "", err
}
jsonConfig := map[string]interface{}{}
err = json.Unmarshal([]byte(config), &jsonConfig)
if err != nil {
- logger.Warningf("Something went wrong: %s", err)
+ logger.Warningf("Failed to parse JSON configuration: %s", err)
return "", err
}
@@ -206,7 +206,7 @@ func (p *process) Start() (err error) {
err = os.MkdirAll(config.GetLogFolder(), 0o770)
if err != nil {
- logger.Warningf("Something went wrong: %s", err)
+ logger.Warningf("Failed to create log folder: %s", err)
}
configPath := GetConfigPath()
@@ -224,7 +224,7 @@ func (p *process) Start() (err error) {
go func() {
err := cmd.Run()
if err != nil {
- logger.Error("Failure in running xray-core: ", err)
+ logger.Error("Failure in running xray-core:", err)
p.exitErr = err
}
}()