集群服务设置--访问日志中可以设置是否只记录通用Header

This commit is contained in:
GoEdgeLab
2022-10-24 14:39:32 +08:00
parent 3505b9107b
commit 681f392d3b
2 changed files with 16 additions and 1 deletions

View File

@@ -78,6 +78,8 @@ func (this *IndexAction) RunPost(params struct {
HttpAllAllowNodeIP bool
HttpAllDefaultDomain string
HttpAccessLogCommonRequestHeadersOnly bool
LogRecordServerError bool
Must *actions.Must
@@ -123,6 +125,8 @@ func (this *IndexAction) RunPost(params struct {
config.HTTPAll.AllowNodeIP = params.HttpAllAllowNodeIP
config.HTTPAll.DefaultDomain = params.HttpAllDefaultDomain
config.HTTPAccessLog.CommonRequestHeadersOnly = params.HttpAccessLogCommonRequestHeadersOnly
config.Log.RecordServerError = params.LogRecordServerError
err = config.Init()