lib/prosopite.rb in prosopite-1.0.8 vs lib/prosopite.rb in prosopite-1.0.9

- old
+ new

@@ -6,10 +6,11 @@ class << self attr_writer :raise, :stderr_logger, :rails_logger, :prosopite_logger, + :custom_logger, :allow_stack_paths, :ignore_queries def allow_list=(value) puts "Prosopite.allow_list= is deprecated. Use Prosopite.allow_stack_paths= instead." @@ -153,10 +154,11 @@ query end def send_notifications + @custom_logger ||= false @rails_logger ||= false @stderr_logger ||= false @prosopite_logger ||= false @raise ||= false @@ -169,9 +171,11 @@ kaller.each do |f| notifications_str << " #{f}\n" unless f.include?(Bundler.bundle_path.to_s) end notifications_str << "\n" end + + @custom_logger.warn(notifications_str) if @custom_logger Rails.logger.warn(red(notifications_str)) if @rails_logger $stderr.puts(red(notifications_str)) if @stderr_logger if @prosopite_logger