Skip to content

Commit 61f321a

Browse files
fix: Fix issue where disabling logs for stream websites fails (#11376)
1 parent 7885b00 commit 61f321a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

agent/app/service/website.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,11 @@ func (w WebsiteService) OpWebsiteLog(req request.WebsiteLogReq) (*response.Websi
11201120
params := []string{logPath}
11211121
switch req.LogType {
11221122
case constant.AccessLog:
1123-
params = append(params, "main")
1123+
if website.Type != constant.Stream {
1124+
params = append(params, "main")
1125+
} else {
1126+
params = append(params, "streamlog")
1127+
}
11241128
website.AccessLog = true
11251129
case constant.ErrorLog:
11261130
key = "error_log"

0 commit comments

Comments
 (0)