Skip to content

Conversation

anders-swanson
Copy link
Member

@anders-swanson anders-swanson commented Sep 3, 2025

Example log message: msg="duplicated database connections" "database connections"="db1, local"

the MetricsConfiguration.validate() function is created to handle future configuration validations. Currently it will only log a WARN message if a database configuration is duplicated.

Fixes #321

Signed-off-by: Anders Swanson <anders.swanson@oracle.com>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 3, 2025
andytael
andytael previously approved these changes Sep 3, 2025
Copy link
Member

@andytael andytael left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Anders Swanson <anders.swanson@oracle.com>
andytael
andytael previously approved these changes Sep 3, 2025
Signed-off-by: Anders Swanson <anders.swanson@oracle.com>
@anders-swanson anders-swanson merged commit 43f6bb3 into main Sep 3, 2025
1 check passed
@anders-swanson anders-swanson deleted the warn-duplciated-databases branch September 3, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated database in config-file should produce a message, warning or error
2 participants