summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/cookbook')
-rw-r--r--lib/chef/cookbook/chefignore.rb2
-rw-r--r--lib/chef/cookbook/gem_installer.rb4
-rw-r--r--lib/chef/cookbook/manifest_v2.rb2
-rw-r--r--lib/chef/cookbook/metadata.rb2
-rw-r--r--lib/chef/cookbook/remote_file_vendor.rb6
-rw-r--r--lib/chef/cookbook/synchronizer.rb4
-rw-r--r--lib/chef/cookbook/syntax_check.rb8
7 files changed, 14 insertions, 14 deletions
diff --git a/lib/chef/cookbook/chefignore.rb b/lib/chef/cookbook/chefignore.rb
index d905e027d6..00dc7c0939 100644
--- a/lib/chef/cookbook/chefignore.rb
+++ b/lib/chef/cookbook/chefignore.rb
@@ -56,7 +56,7 @@ class Chef
ignore_globs << line.strip unless line =~ COMMENTS_AND_WHITESPACE
end
else
- Chef::Log.debug("No chefignore file found at #{@ignore_file} no files will be ignored")
+ Chef::Log.trace("No chefignore file found at #{@ignore_file} no files will be ignored")
end
ignore_globs
end
diff --git a/lib/chef/cookbook/gem_installer.rb b/lib/chef/cookbook/gem_installer.rb
index 0b64d3354f..deac48ff78 100644
--- a/lib/chef/cookbook/gem_installer.rb
+++ b/lib/chef/cookbook/gem_installer.rb
@@ -57,8 +57,8 @@ class Chef
tf.puts "gem(*#{([gem_name] + args).inspect})"
end
tf.close
- Chef::Log.debug("generated Gemfile contents:")
- Chef::Log.debug(IO.read(tf.path))
+ Chef::Log.trace("generated Gemfile contents:")
+ Chef::Log.trace(IO.read(tf.path))
so = shell_out!("bundle install", cwd: dir, env: { "PATH" => path_with_prepended_ruby_bin })
Chef::Log.info(so.stdout)
end
diff --git a/lib/chef/cookbook/manifest_v2.rb b/lib/chef/cookbook/manifest_v2.rb
index 59b5c9afb0..2a5f1fb5e6 100644
--- a/lib/chef/cookbook/manifest_v2.rb
+++ b/lib/chef/cookbook/manifest_v2.rb
@@ -24,7 +24,7 @@ class Chef
minimum_api_version 2
def self.from_hash(hash)
- Chef::Log.debug "processing manifest: #{hash}"
+ Chef::Log.trace "processing manifest: #{hash}"
Mash.new hash
end
diff --git a/lib/chef/cookbook/metadata.rb b/lib/chef/cookbook/metadata.rb
index 22f006640d..c378cb75b6 100644
--- a/lib/chef/cookbook/metadata.rb
+++ b/lib/chef/cookbook/metadata.rb
@@ -616,7 +616,7 @@ class Chef
if block_given?
super
else
- Chef::Log.debug "ignoring method #{method} on cookbook with name #{name}, possible typo or the ghosts of metadata past or future?"
+ Chef::Log.trace "ignoring method #{method} on cookbook with name #{name}, possible typo or the ghosts of metadata past or future?"
end
end
diff --git a/lib/chef/cookbook/remote_file_vendor.rb b/lib/chef/cookbook/remote_file_vendor.rb
index 668d74c9ce..3f73c1cca6 100644
--- a/lib/chef/cookbook/remote_file_vendor.rb
+++ b/lib/chef/cookbook/remote_file_vendor.rb
@@ -65,11 +65,11 @@ class Chef
if found_manifest_record[:lazy] || current_checksum != found_manifest_record["checksum"]
raw_file = @rest.streaming_request(found_manifest_record[:url])
- Chef::Log.debug("Storing updated #{cache_filename} in the cache.")
+ Chef::Log.trace("Storing updated #{cache_filename} in the cache.")
Chef::FileCache.move_to(raw_file.path, cache_filename)
else
- Chef::Log.debug("Not fetching #{cache_filename}, as the cache is up to date.")
- Chef::Log.debug("Current checksum: #{current_checksum}; manifest checksum: #{found_manifest_record['checksum']})")
+ Chef::Log.trace("Not fetching #{cache_filename}, as the cache is up to date.")
+ Chef::Log.trace("Current checksum: #{current_checksum}; manifest checksum: #{found_manifest_record['checksum']})")
end
full_path_cache_filename = Chef::FileCache.load(cache_filename, false)
diff --git a/lib/chef/cookbook/synchronizer.rb b/lib/chef/cookbook/synchronizer.rb
index 991e418f99..6df39fece3 100644
--- a/lib/chef/cookbook/synchronizer.rb
+++ b/lib/chef/cookbook/synchronizer.rb
@@ -148,7 +148,7 @@ class Chef
# true:: Always returns true
def sync_cookbooks
Chef::Log.info("Loading cookbooks [#{cookbooks.map { |ckbk| ckbk.name + '@' + ckbk.version }.join(', ')}]")
- Chef::Log.debug("Cookbooks detail: #{cookbooks.inspect}")
+ Chef::Log.trace("Cookbooks detail: #{cookbooks.inspect}")
clear_obsoleted_cookbooks
@@ -272,7 +272,7 @@ class Chef
download_file(file.manifest_record["url"], cache_filename)
@events.updated_cookbook_file(file.cookbook.name, cache_filename)
else
- Chef::Log.debug("Not storing #{cache_filename}, as the cache is up to date.")
+ Chef::Log.trace("Not storing #{cache_filename}, as the cache is up to date.")
end
# Load the file in the cache and return the full file path to the loaded file
diff --git a/lib/chef/cookbook/syntax_check.rb b/lib/chef/cookbook/syntax_check.rb
index 8d0d636bd2..b94b14fe6a 100644
--- a/lib/chef/cookbook/syntax_check.rb
+++ b/lib/chef/cookbook/syntax_check.rb
@@ -124,7 +124,7 @@ class Chef
def untested_ruby_files
ruby_files.reject do |file|
if validated?(file)
- Chef::Log.debug("Ruby file #{file} is unchanged, skipping syntax check")
+ Chef::Log.trace("Ruby file #{file} is unchanged, skipping syntax check")
true
else
false
@@ -139,7 +139,7 @@ class Chef
def untested_template_files
template_files.reject do |file|
if validated?(file)
- Chef::Log.debug("Template #{file} is unchanged, skipping syntax check")
+ Chef::Log.trace("Template #{file} is unchanged, skipping syntax check")
true
else
false
@@ -170,12 +170,12 @@ class Chef
end
def validate_template(erb_file)
- Chef::Log.debug("Testing template #{erb_file} for syntax errors...")
+ Chef::Log.trace("Testing template #{erb_file} for syntax errors...")
validate_erb_file_inline(erb_file)
end
def validate_ruby_file(ruby_file)
- Chef::Log.debug("Testing #{ruby_file} for syntax errors...")
+ Chef::Log.trace("Testing #{ruby_file} for syntax errors...")
validate_ruby_file_inline(ruby_file)
end