Skip to content

Commit

Permalink
Fix for access-log feature. (#8041)
Browse files Browse the repository at this point in the history
Correct config prefix/id, and added provides for the service.

Signed-off-by: Tomas Langer <[email protected]>
  • Loading branch information
tomas-langer authored Nov 20, 2023
1 parent ea3e55c commit aeeb6af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ env: docker
server:
port: 8080
features:
access-log:
enabled: true
security:
paths:
- path: "/api/{+}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import io.helidon.webserver.spi.ServerFeatureProvider;

/**
* {@link java.util.ServiceLoader} provider implementation for context feature for {@link io.helidon.webserver.WebServer}.
* {@link java.util.ServiceLoader} provider implementation for access log feature for {@link io.helidon.webserver.WebServer}.
*/
@Weight(AccessLogFeature.WEIGHT)
public class AccessLogFeatureProvider implements ServerFeatureProvider<AccessLogFeature> {
Expand All @@ -36,7 +36,7 @@ public AccessLogFeatureProvider() {

@Override
public String configKey() {
return "context";
return "access-log";
}

@Override
Expand Down
3 changes: 3 additions & 0 deletions webserver/access-log/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@

exports io.helidon.webserver.accesslog;

provides io.helidon.webserver.spi.ServerFeatureProvider
with io.helidon.webserver.accesslog.AccessLogFeatureProvider;

}

0 comments on commit aeeb6af

Please sign in to comment.