Skip to content

Commit

Permalink
feat(fxcore): Perfs audit
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox committed Mar 20, 2024
1 parent 703ea64 commit 8ad5597
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions fxcore/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,21 +165,21 @@ func withMiddlewares(coreServer *echo.Echo, p FxCoreParam) *echo.Echo {
))

// request logger middleware
requestHeadersToLog := map[string]string{
httpservermiddleware.HeaderXRequestId: httpservermiddleware.LogFieldRequestId,
}
/* requestHeadersToLog := map[string]string{
httpservermiddleware.HeaderXRequestId: httpservermiddleware.LogFieldRequestId,
}
for headerName, fieldName := range p.Config.GetStringMapString("modules.core.server.log.headers") {
requestHeadersToLog[headerName] = fieldName
}
for headerName, fieldName := range p.Config.GetStringMapString("modules.core.server.log.headers") {
requestHeadersToLog[headerName] = fieldName
}*/

coreServer.Use(httpservermiddleware.RequestLoggerMiddlewareWithConfig(
/* coreServer.Use(httpservermiddleware.RequestLoggerMiddlewareWithConfig(
httpservermiddleware.RequestLoggerMiddlewareConfig{
RequestHeadersToLog: requestHeadersToLog,
RequestUriPrefixesToExclude: p.Config.GetStringSlice("modules.core.server.log.exclude"),
LogLevelFromResponseOrErrorCode: p.Config.GetBool("modules.core.server.log.level_from_response"),
},
))
))*/

// request tracer middleware
if p.Config.GetBool("modules.core.server.trace.enabled") {
Expand Down

0 comments on commit 8ad5597

Please sign in to comment.