Skip to content

Add logging to display signing name used for sigv4 auth. #671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2025

Conversation

franco2002lu
Copy link
Contributor

Added FINE level logging for SigV4 configuration.

@franco2002lu franco2002lu requested a review from mtdowling April 25, 2025 17:46
@@ -269,6 +270,7 @@ private void configureAuth(DynamicClient.Builder builder, ShapeId serviceInput,
.map(ServiceTrait::getArnNamespace)
.orElse(serviceInput.getNamespace().toLowerCase()));

LOGGER.fine("Using service signing name detected in model: " + signingName);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move to using the smithy-logger interface in a follow-up PR instead of using JUL directly? We want to use format strings like log("Using signing service name {}", signingName); because they prevent the creation of unnecessary garbage in the form of concatenated strings. JUL does not support that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

by the smithy-logger interface, do you mean InternalLogger or is that something different?

@rhernandez35 rhernandez35 merged commit 1833c59 into main Apr 25, 2025
2 checks passed
@rhernandez35 rhernandez35 deleted the add-sigv4-debug-logging branch April 25, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants