diff options
author | Steven Danna <steve@chef.io> | 2015-07-31 11:23:29 +0100 |
---|---|---|
committer | Steven Danna <steve@chef.io> | 2015-08-25 17:30:22 +0100 |
commit | 913283f8640bbc2555fc62ca39c2d29e6460b207 (patch) | |
tree | ce13ae1e545c7b125f9996c9c82fbc9413e54eef | |
parent | fb251d08da81967dd965305f30b43c0cb0d48173 (diff) | |
download | chef-913283f8640bbc2555fc62ca39c2d29e6460b207.tar.gz |
Add debug-level messages about manifest path.
These message are only available if KNIFE_DEBUG is set because this
happens before our configuration is loaded.
-rw-r--r-- | lib/chef/knife/core/subcommand_loader.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/knife/core/subcommand_loader.rb b/lib/chef/knife/core/subcommand_loader.rb index 8aa2205679..f1fcef4afd 100644 --- a/lib/chef/knife/core/subcommand_loader.rb +++ b/lib/chef/knife/core/subcommand_loader.rb @@ -48,8 +48,10 @@ class Chef # or directly instantiate the appropriate subclass def self.for_config(chef_config_dir) if autogenerated_manifest? + Chef::Log.debug("Using autogenerated hashed command manifest #{plugin_manifest_path}") Knife::SubcommandLoader::HashedCommandLoader.new(chef_config_dir, plugin_manifest) elsif custom_manifest? + Chef::Log.debug("Using custom manifest #{plugin_manifest_path}") Knife::SubcommandLoader::CustomManifestLoader.new(chef_config_dir, plugin_manifest) else Knife::SubcommandLoader::GemGlobLoader.new(chef_config_dir) |