mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix: nginx history log issue
This commit is contained in:
parent
6ee9eefa8b
commit
b7d5590714
2 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue