健康检查增加是否记录访问日志选项

This commit is contained in:
GoEdgeLab
2022-05-19 17:13:20 +08:00
parent 36df8c2eee
commit 38603416ee

View File

@@ -21,8 +21,13 @@ func (this *HTTPRequest) doHealthCheck(key string, isHealthCheck *bool) (stop bo
} }
*isHealthCheck = true *isHealthCheck = true
if !data.GetBool("accessLogIsOn") {
this.disableLog = true
}
if data.GetBool("onlyBasicRequest") { if data.GetBool("onlyBasicRequest") {
return true return true
} }
return return
} }