[MAGNOLIA-5863] AuditLoggingManager is clogging up test logs Created: 04/Aug/14  Updated: 05/Aug/14  Resolved: 04/Aug/14

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.2

Type: Improvement Priority: Minor
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

We get a lot of log entries similar to the below when running tests.
This is because AuditLoggingManager is registered via core.xml which declares it as an observed manager. AFAICT, this is no value in unit tests, so I'd rather shunt it so that test log remain readable.

2014-08-04 13:25:16,340 INFO  fo.magnolia.objectfactory.ObservedComponentFactory: /server/auditLogging does not exist, will return a new instance of class info.magnolia.audit.AuditLoggingManager.
2014-08-04 13:25:16,340 WARN  info.magnolia.context.AbstractRepositoryStrategy  : won't close session because of registered observation listener config

Generated at Mon Feb 12 04:09:06 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.