Skip to content

Commit

Permalink
Fix #1498: enable access/request log by default (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatu-at-datastax authored Oct 7, 2024
1 parent b1413fa commit 5b6d6af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
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':
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

0 comments on commit 5b6d6af

Please sign in to comment.