mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-20 06:18:56 +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}
|
params := []string{logPath}
|
||||||
switch req.LogType {
|
switch req.LogType {
|
||||||
case constant.AccessLog:
|
case constant.AccessLog:
|
||||||
params = append(params, "main")
|
if website.Type != constant.Stream {
|
||||||
|
params = append(params, "main")
|
||||||
|
} else {
|
||||||
|
params = append(params, "streamlog")
|
||||||
|
}
|
||||||
website.AccessLog = true
|
website.AccessLog = true
|
||||||
case constant.ErrorLog:
|
case constant.ErrorLog:
|
||||||
key = "error_log"
|
key = "error_log"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue