Skip to content

Instantly share code, notes, and snippets.

@daviddavis
Created September 27, 2013 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daviddavis/b353d7fde212797cdbee to your computer and use it in GitHub Desktop.
Save daviddavis/b353d7fde212797cdbee to your computer and use it in GitHub Desktop.
diff --git a/config/initializers/quiet_paths.rb b/config/initializers/quiet_paths.rb
index 7cad33b..b40a3b3 100644
--- a/config/initializers/quiet_paths.rb
+++ b/config/initializers/quiet_paths.rb
@@ -8,6 +8,7 @@ Rails::Rack::Logger.class_eval do
# Increase log level because of messages that have a low level should not be displayed
quiet = PREFIXES.any?{|p| env["PATH_INFO"].start_with?(p) }
Rails.logger.level = level if quiet
+ debugger if env["REQUEST_PATH"] == "/katello/api/repositories/1/content_uploads/file"
call_without_quiet(env)
ensure
# Return back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment