diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-06 13:15:01 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-06 13:15:01 +0300 |
| commit | 6cf29d5145bea39f731410e15472606223e0d7c0 (patch) | |
| tree | 32976705680b3be12db72da468d9e01051d126e1 /web/job | |
| parent | 182710b86c3ded55b5e4a3c09bdccddd117246f2 (diff) | |
fix - Ensure logs are not null in show method #1763
Diffstat (limited to 'web/job')
| -rw-r--r-- | web/job/check_client_ip_job.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/job/check_client_ip_job.go b/web/job/check_client_ip_job.go index 905a8cc7..65e2a0ca 100644 --- a/web/job/check_client_ip_job.go +++ b/web/job/check_client_ip_job.go @@ -88,7 +88,7 @@ func (j *CheckClientIpJob) checkFail2BanInstalled() { err := exec.Command(cmd, args...).Run() if err != nil { - logger.Warning("fail2ban is not installed. IP limiting may not work properly.") + logger.Error("fail2ban is not installed. IP limiting may not work properly.") } } @@ -96,12 +96,12 @@ func (j *CheckClientIpJob) processLogFile() { accessLogPath := xray.GetAccessLogPath() if accessLogPath == "none" { - logger.Warning("Access log is set to 'none' check your Xray Configs") + logger.Error("Access log is set to 'none' check your Xray Configs") return } if accessLogPath == "" { - logger.Warning("Access log doesn't exist in your Xray Configs") + logger.Error("Access log doesn't exist in your Xray Configs") return } |
