Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1498: enable access/request log by default #1503

Merged
merged 3 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ quarkus:

# HTTP settings
http:
# access log format, must be explicitly enabled
access-log:
enabled: true
pattern: "%h %l %t \"%r\" %s %b"

# every /v1 path is authenticated by default
# adapt if changing the authentication mechanism
auth:
Expand All @@ -87,10 +92,6 @@ quarkus:
paths: /v1/*
policy: authenticated

# access log format, must be explicitly enabled
access-log:
pattern: "%h %l %t \"%r\" %s %b"

limits:
# Let's limit low-level maximum HTTP request size to 20 megs: stricter
# limit (4 meg per document) is applied at the JSON API level.
Expand All @@ -115,6 +116,8 @@ quarkus:
level: ERROR
'com.datastax.oss.driver':
level: WARN
'io.quarkus.http.access-log':
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is important: with default level of WARN request/access log would not be included without.

level: INFO
'io.stargate':
level: WARN

Expand Down
5 changes: 4 additions & 1 deletion src/test/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ stargate:
# change test port from 8081 (used by other SG services)
quarkus:
http:
test-port: 9080
# access log format, disabled for tests to reduce noise
access-log:
enabled: false
test-port: 9080