diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-09 00:08:00 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-09 00:47:49 +0300 |
| commit | f1500a5d313aac35121981046327396d237a4946 (patch) | |
| tree | 04cecd968ccac48aa12a8769c28d62a0bc2672ff /xray/process.go | |
| parent | c9a218d0604876dbbd5adf076750b3fb8fa3811c (diff) | |
improved - message logs
Diffstat (limited to 'xray/process.go')
| -rw-r--r-- | xray/process.go | 8 |
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 } }() |
