集群服务设置增加“记录找不到网站日志”选项

This commit is contained in:
GoEdgeLab
2023-03-07 10:30:11 +08:00
parent 565ce2aa0d
commit aa99063800
2 changed files with 9 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ func (this *IndexAction) RunPost(params struct {
HttpAccessLogEnableResponseHeaders bool
HttpAccessLogCommonRequestHeadersOnly bool
HttpAccessLogEnableCookies bool
HttpAccessLogEnableServerNotFound bool
LogRecordServerError bool
@@ -138,6 +139,7 @@ func (this *IndexAction) RunPost(params struct {
config.HTTPAccessLog.EnableResponseHeaders = params.HttpAccessLogEnableResponseHeaders
config.HTTPAccessLog.CommonRequestHeadersOnly = params.HttpAccessLogCommonRequestHeadersOnly
config.HTTPAccessLog.EnableCookies = params.HttpAccessLogEnableCookies
config.HTTPAccessLog.EnableServerNotFound = params.HttpAccessLogEnableServerNotFound
// 日志
config.Log.RecordServerError = params.LogRecordServerError