Skip to content
Snippets Groups Projects
Commit 92f856d0 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Silence one other location

parent 89094f21
No related branches found
No related tags found
1 merge request!859Patch chef-zero to silence it.
diff --git a/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb.original b/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb
index 71f6f15..9d14696 100644
--- a/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb.original
+++ b/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb
@@ -61,7 +61,7 @@ module ChefZero
begin
self.send(method, request)
rescue RestErrorResponse => e
- ChefZero::Log.info("#{e.inspect}\n#{e.backtrace.join("\n")}")
+ ChefZero::Log.debug("#{e.inspect}\n#{e.backtrace.join("\n")}")
error(e.response_code, e.error)
end
end
Loading
Loading
@@ -10,17 +10,3 @@ index b2de9c9..a93af8b 100644
+ ChefZero::Log.debug do
"#{request.method} /#{request.rest_path.join("/")}".tap do |msg|
next unless request.method =~ /^(POST|PUT)$/
diff --git a/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb.original b/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb
index 71f6f15..9d14696 100644
--- a/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb.original
+++ b/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb
@@ -61,7 +61,7 @@ module ChefZero
begin
self.send(method, request)
rescue RestErrorResponse => e
- ChefZero::Log.info("#{e.inspect}\n#{e.backtrace.join("\n")}")
+ ChefZero::Log.debug("#{e.inspect}\n#{e.backtrace.join("\n")}")
error(e.response_code, e.error)
end
end
Loading
Loading
@@ -33,5 +33,6 @@ build do
" --bindir '#{install_dir}/embedded/bin'" \
" --no-ri --no-rdoc", env: env
 
patch source: 'chef-zero-2.7.0-log-level.patch', target: '/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_router.rb'
patch source: 'chef-zero-2.7.0-log-level-rest_router.patch', target: '/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_router.rb'
patch source: 'chef-zero-2.7.0-log-level-rest_base.patch', target: '/opt/gitlab/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.7.0/lib/chef_zero/rest_base.rb'
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment