mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-19 22:09:03 +08:00
fix: Fix issue where disabling logs for stream websites fails (#11376)
This commit is contained in:
parent
7885b00213
commit
61f321a04d
1 changed files with 5 additions and 1 deletions
|
|
@ -1120,7 +1120,11 @@ func (w WebsiteService) OpWebsiteLog(req request.WebsiteLogReq) (*response.Websi
|
|||
params := []string{logPath}
|
||||
switch req.LogType {
|
||||
case constant.AccessLog:
|
||||
params = append(params, "main")
|
||||
if website.Type != constant.Stream {
|
||||
params = append(params, "main")
|
||||
} else {
|
||||
params = append(params, "streamlog")
|
||||
}
|
||||
website.AccessLog = true
|
||||
case constant.ErrorLog:
|
||||
key = "error_log"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue