fix: nginx history log issue

This commit is contained in:
0xJacky 2023-01-03 11:42:47 +08:00
parent 6ee9eefa8b
commit b7d5590714
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
2 changed files with 2 additions and 3 deletions

View file

@ -68,8 +68,8 @@ function init() {
nginx_log.page(0, {
conf_name: (route.query.conf_name as string),
type: logType(),
server_idx: 0,
directive_idx: 0
server_idx: parseInt(route.query.server_idx as string),
directive_idx: parseInt(route.query.directive_idx as string)
}).then(r => {
page.value = r.page - 1
addLog(r.content)

View file

@ -125,7 +125,6 @@ func getLogPath(control *controlStruct) (logPath string, err error) {
}
directive := config.Servers[control.ServerIdx].Directives[control.DirectiveIdx]
switch directive.Directive {
case "access_log", "error_log":
// ok