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

Add warning when returning DEFAULT_ATTRIBUTE #2934

Merged
merged 1 commit into from Apr 11, 2018
Merged

Conversation

TrevorBramble
Copy link
Contributor

When the anonymous DEFAULT_ATTRIBUTE class is used, log a warning.

We now pass in the attribute name to that class so it can be used in the log message.

Fixes #2865
Complement of #2891

image

@TrevorBramble TrevorBramble requested a review from a team as a code owner April 9, 2018 22:29
@TrevorBramble TrevorBramble added the Type: Enhancement Improves an existing feature label Apr 9, 2018
When the anonymous DEFAULT_ATTRIBUTE class is used, log a warning.

We now pass in the attribute name to that class so it can be used in the
log message.

Signed-off-by: Trevor Bramble <tbramble@chef.io>
Copy link
Contributor

@jquick jquick left a comment

Choose a reason for hiding this comment

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

I like this. Thanks @TrevorBramble !

Copy link
Contributor

@jerryaldrichiii jerryaldrichiii left a comment

Choose a reason for hiding this comment

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

Looks good to me. Love it!

Copy link
Contributor

@miah miah left a comment

Choose a reason for hiding this comment

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

Thanks @TrevorBramble !

@jquick jquick merged commit 6bfe741 into master Apr 11, 2018
@jquick jquick deleted the warn-on-default-attr branch April 11, 2018 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants