Skip to content

Commit

Permalink
Fix tests failure
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovo committed Aug 4, 2024
1 parent b36ef99 commit a81a81e
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions pkg/gateway/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,16 @@ func NewHandler(region string, catalog *catalog.Catalog, multipartTracker multip

h = loggingMiddleware(h)

if isAdvancedAuth {
h = EnrichWithOperation(sc,
DurationHandler(
AuthenticationHandler(authService, EnrichWithParts(bareDomains,
EnrichWithRepositoryOrFallback(catalog, authService, fallbackHandler,
OperationLookupHandler(
h))))))
logging.ContextUnavailable().WithFields(logging.Fields{
"s3_bare_domain": bareDomains,
"s3_region": region,
}).Info("initialized S3 Gateway handler")
}
h = EnrichWithOperation(sc,
DurationHandler(
AuthenticationHandler(authService, EnrichWithParts(bareDomains,
EnrichWithRepositoryOrFallback(catalog, authService, fallbackHandler,
OperationLookupHandler(
h))))))
logging.ContextUnavailable().WithFields(logging.Fields{
"s3_bare_domain": bareDomains,
"s3_region": region,
}).Info("initialized S3 Gateway handler")
return h
}

Expand Down

0 comments on commit a81a81e

Please sign in to comment.