Permalink
Browse files

Oops, cleanup debug output

  • Loading branch information...
1 parent 5e9ef35 commit 8b3714e2384f1c1864007a6f5464df7c96036328 @presidentbeef committed Apr 6, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 lib/brakeman/processors/lib/render_helper.rb
View
10 lib/brakeman/processors/lib/render_helper.rb
@@ -14,10 +14,8 @@ def process_render exp
begin
process_template template_name, exp[3]
rescue ArgumentError => e
- $stderr.puts e
- $stderr.puts self.class
- $stderr.puts @template[:name]
- $stderr.puts "Problem processing render: #{exp}"
+ Brakeman.debug "Problem processing render: #{exp}"
+ raise e
end
when :partial, :layout
process_partial exp[2], exp[3]
@@ -26,10 +24,6 @@ def process_render exp
exp
end
- def process_layout_in_view exp
- $stderr.puts exp.inspect
- end
-
#Processes layout
def process_layout name = nil
if name.nil? and defined? layout_name

0 comments on commit 8b3714e

Please sign in to comment.