summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-03-19 14:05:35 -0700
committerSerdar Sutay <serdar@opscode.com>2014-03-19 14:05:35 -0700
commit9f89084c5245b1dc23273648a3fa751305c51b2c (patch)
tree458e50bc7e7176730b7a98ff537a96ea674811b3 /lib/chef
parentd92b7f3e237fcb6c71c9766f9e24c4d5719fc4db (diff)
parentf6d04318a02eeefb98e23f7c8922f77c153c4785 (diff)
downloadchef-9f89084c5245b1dc23273648a3fa751305c51b2c.tar.gz
Merge pull request #1059 from opscode/jhs/CHEF-4643
CHEF-4643 Add cookbook versions to chef-client INFO and DEBUG logs
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/cookbook/synchronizer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/cookbook/synchronizer.rb b/lib/chef/cookbook/synchronizer.rb
index 4522323fac..fc5d16617c 100644
--- a/lib/chef/cookbook/synchronizer.rb
+++ b/lib/chef/cookbook/synchronizer.rb
@@ -92,7 +92,7 @@ class Chef
# === Returns
# true:: Always returns true
def sync_cookbooks
- Chef::Log.info("Loading cookbooks [#{cookbook_names.sort.join(', ')}]")
+ Chef::Log.info("Loading cookbooks [#{cookbooks.map {|ckbk| ckbk.name + '@' + ckbk.version}.join(', ')}]")
Chef::Log.debug("Cookbooks detail: #{cookbooks.inspect}")
clear_obsoleted_cookbooks
@@ -136,7 +136,7 @@ class Chef
# valid_cache_entries<Hash>:: Out-param; Added to this hash are the files that
# were referred to by this cookbook
def sync_cookbook(cookbook)
- Chef::Log.debug("Synchronizing cookbook #{cookbook.name}")
+ Chef::Log.debug("Synchronizing cookbook #{cookbook.name} #{cookbook.version}")
# files and templates are lazily loaded, and will be done later.