Skip to content

Commit

Permalink
fix: nginx logs manual link error #201
Browse files Browse the repository at this point in the history
close #201
  • Loading branch information
0xJacky committed Nov 23, 2023
1 parent 7aa1765 commit 4b567e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/api/nginx_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ func getLogPath(control *controlStruct) (logPath string, err error) {
case "error":
if settings.NginxSettings.ErrorLogPath == "" {
err = errors.New("settings.NginxLogSettings.ErrorLogPath is empty," +
" see https://github.com/0xJacky/nginx-ui/wiki/Nginx-Log-Configuration for more information")
" refer to https://nginxui.com/zh_CN/guide/config-nginx-log.html for more information")
return
}
logPath = settings.NginxSettings.ErrorLogPath

default:
if settings.NginxSettings.AccessLogPath == "" {
err = errors.New("settings.NginxLogSettings.AccessLogPath is empty," +
" see https://github.com/0xJacky/nginx-ui/wiki/Nginx-Log-Configuration for more information")
" refer to https://nginxui.com/zh_CN/guide/config-nginx-log.html for more information")
return
}
logPath = settings.NginxSettings.AccessLogPath
Expand Down

0 comments on commit 4b567e4

Please sign in to comment.