Skip to content
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

Fix debug message formatting in node resolver #666

Merged
merged 2 commits into from
Jan 9, 2019

Conversation

scotte
Copy link
Contributor

@scotte scotte commented Jan 7, 2019

Signed-off-by: Scott Emmons scott@scytale.io

This should fix node resolver debug log messages that look like:

level=debug msg="could not find node resolver type %qk8s_sat" subsystem_name=node_api

azdagron
azdagron previously approved these changes Jan 8, 2019
Copy link
Member

@azdagron azdagron left a comment

Choose a reason for hiding this comment

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

You beat me to it! Thanks much! One small nit...

@@ -512,7 +512,7 @@ func (h *Handler) updateNodeSelectors(ctx context.Context,
var selectors []*common.Selector
if nodeResolver == nil {
// If not matching node resolver found, skip adding additional selectors
h.c.Log.Debug("could not find node resolver type %q", attestationType)
h.c.Log.Debugf("could not find node resolver type %v", attestationType)
Copy link
Member

Choose a reason for hiding this comment

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

nit: Can we keep the ÷q format specifier? It adds quotes around the attestor type that helps provide visual distinction.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, fixed in the amended commit...

@coveralls
Copy link

coveralls commented Jan 8, 2019

Coverage Status

Coverage decreased (-0.06%) to 70.605% when pulling 477f38b on fix_node_resolver_debug into 5ebc211 on master.

Signed-off-by: Scott Emmons <scott@scytale.io>
@evan2645 evan2645 merged commit bf072b5 into master Jan 9, 2019
@evan2645 evan2645 deleted the fix_node_resolver_debug branch January 9, 2019 23:04
@evan2645 evan2645 mentioned this pull request Jan 22, 2019
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.

4 participants