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

Extra debug logging and error handling in plugin loading #808

Merged
merged 5 commits into from
Apr 22, 2016
Merged

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Apr 20, 2016

Pretty simple stuff here. Add the plugin paths and the discovered plugins to debug logging. Add the config too so you can see where we're getting the paths from. Then if you pass in a bogus dir make sure we warn instead of silently continuing like we do now.

@tas50
Copy link
Contributor Author

tas50 commented Apr 21, 2016

@mcquin + @chef/client-core this is ready

@mcquin
Copy link
Contributor

mcquin commented Apr 21, 2016

👍

1 similar comment
@iennae
Copy link
Contributor

iennae commented Apr 21, 2016

👍

@@ -219,6 +219,14 @@
expect { loader.load_plugin(path_to("bad_name.rb")) }.not_to raise_error
end
end

describe "when plugin directory does not exist" do
it "logs and invalid plugin path warning" do
Copy link
Contributor

Choose a reason for hiding this comment

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

"an"

@thommay
Copy link
Contributor

thommay commented Apr 22, 2016

teensiest of nits but 👍

@tas50 tas50 merged commit d293f45 into master Apr 22, 2016
@tas50 tas50 deleted the plugin_path branch April 22, 2016 18:26
@thommay thommay added Type: Enhancement Adds new functionality. and removed Enhancement labels Jan 24, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants