Fix body logging
This commit is contained in:
1 parent
bce6527dc7
commit
3182cefbe2
3 files changed
+5
-3
No files matched your search
@@ -1,3 +1,5 @@
|
||||
### v4.1.2
|
||||
* исправлена опция логирования тела запроса (при настройке ws могла отключаться)
|
||||
### v4.1.1
|
||||
* исправлена маршрутизация запросов
|
||||
### v4.1.0
|
||||
|
||||
+2
-2
@@ -64,11 +64,11 @@ func (l Locator) Handler(config conf.Remote, locations []conf.Location, redisCli
|
||||
throttlingRepo := repository.NewThrottling(redisCli)
|
||||
throttlingService := service.NewThrottling(throttlingRepo, config.Throttling)
|
||||
|
||||
enableBodyLog := config.Logging.BodyLogEnable
|
||||
|
||||
mux := mux2.NewRouter()
|
||||
for _, location := range locations {
|
||||
var proxyFunc middleware.Handler
|
||||
enableBodyLog := config.Logging.BodyLogEnable
|
||||
|
||||
switch location.Protocol {
|
||||
case conf.GrpcProtocol:
|
||||
cli := l.grpcClientByModuleName[location.TargetModule]
|
||||
|
||||
Reference in new issue
Block a user