Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Make all logging HikariCPConnectionManager SLS #4905

Merged
merged 4 commits into from
Jul 20, 2020

Conversation

Jolyon-S
Copy link
Contributor

@Jolyon-S Jolyon-S commented Jul 20, 2020

Goals (and why):

  • Not all arguments logged are correctly captured by (Un)safe args.

Implementation Description (bullets):

  • All arguments passed into logging messages (with the exception of exceptions) are captured in Safe or Unsafe args.

Testing (What was existing testing like? What have you done to improve it?):
N/A

Concerns (what feedback would you like?):
Please verify that this fully adheres to internal specifications.

Where should we start reviewing?:
HikariCPConnectionManager.

Priority (whenever / two weeks / yesterday):
This week.

@changelog-app
Copy link

changelog-app bot commented Jul 20, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Make all logging in HikariCPConnectionManager SLS

Check the box to generate changelog(s)

  • Generate changelog entry

@@ -345,7 +348,9 @@ private HikariPoolMXBean initPoolMbeans() {
try {
poolName = new ObjectName("com.zaxxer.hikari:type=Pool (" + connConfig.getConnectionPoolName() + ")");
} catch (MalformedObjectNameException e) {
log.error("Unable to setup mBean monitoring for pool {}.", connConfig.getConnectionPoolName(), e);
log.error("Unable to setup mBean monitoring for pool {}.",
SafeArg.of("connectionPoolName", connConfig.getConnectionPoolName()),
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, check conection pool what it contains

@bulldozer-bot bulldozer-bot bot merged commit 022f6f1 into develop Jul 20, 2020
@bulldozer-bot bulldozer-bot bot deleted the safe-log-rest-hikari branch July 20, 2020 09:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants