Skip to content

Commit

Permalink
[artemiscloud#75] Disable audit loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
brusdev committed Sep 26, 2023
1 parent 8069fcc commit a90eaed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/activemq-artemis-launch/added/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ logger.artemis_utils.level=INFO
logger.critical_analyzer.name=org.apache.activemq.artemis.utils.critical
logger.critical_analyzer.level=INFO

# Audit loggers: to enable change levels from OFF to INFO
logger.audit_base.name = org.apache.activemq.audit.base
logger.audit_base.level = OFF
logger.audit_base.additivity = false

logger.audit_resource.name = org.apache.activemq.audit.resource
logger.audit_resource.level = OFF
logger.audit_resource.additivity = false

logger.audit_message.name = org.apache.activemq.audit.message
logger.audit_message.level = OFF
logger.audit_message.additivity = false

# Jetty logger levels
logger.jetty.name=org.eclipse.jetty
logger.jetty.level=WARN
Expand Down
1 change: 1 addition & 0 deletions tests/features/basic.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Feature: Basic
Then check that port 61616 is open
Then run /home/jboss/broker/bin/artemis check queue --name TEST --produce 1000 --browse 1000 --consume 1000 --user admin --password admin in container and check its output contains Checks run: 3, Failures: 0, Errors: 0, Skipped: 0
Then file /home/jboss/broker/log/artemis.log should not exist
Then container log should not contain org.apache.activemq.audit

Scenario: Test if SNI checks are disabled
When container is started with env
Expand Down

0 comments on commit a90eaed

Please sign in to comment.