From 9a779bbc5f763db18165d8427ffb5f50c105c890 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 7 Mar 2023 10:30:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E7=BE=A4=E6=9C=8D=E5=8A=A1=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=A2=9E=E5=8A=A0=E2=80=9C=E8=AE=B0=E5=BD=95=E6=89=BE?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E7=BD=91=E7=AB=99=E6=97=A5=E5=BF=97=E2=80=9D?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/global_server_config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/serverconfigs/global_server_config.go b/pkg/serverconfigs/global_server_config.go index 743d272..5f64c77 100644 --- a/pkg/serverconfigs/global_server_config.go +++ b/pkg/serverconfigs/global_server_config.go @@ -7,6 +7,7 @@ func DefaultGlobalServerConfig() *GlobalServerConfig { config.HTTPAccessLog.EnableRequestHeaders = true config.HTTPAccessLog.EnableResponseHeaders = true config.HTTPAccessLog.EnableCookies = true + config.HTTPAccessLog.EnableServerNotFound = true config.Log.RecordServerError = false config.Performance.AutoWriteTimeout = true config.Performance.AutoReadTimeout = true @@ -28,6 +29,7 @@ type GlobalServerConfig struct { CommonRequestHeadersOnly bool `yaml:"commonRequestHeadersOnly" json:"commonRequestHeadersOnly"` // 只保留通用Header EnableResponseHeaders bool `yaml:"enableResponseHeaders" json:"enableResponseHeaders"` // 记录响应Header EnableCookies bool `yaml:"enableCookies" json:"enableCookies"` // 记录Cookie + EnableServerNotFound bool `yaml:"enableServerNotFound" json:"enableServerNotFound"` // 记录服务找不到的日志 } `yaml:"httpAccessLog" json:"httpAccessLog"` // 访问日志配置 Performance struct {