Class: MtkFramework::ActiveInteractionConcerns::Loggable::BacktraceCleaner
- Inherits:
-
Rails::BacktraceCleaner
- Object
- Rails::BacktraceCleaner
- MtkFramework::ActiveInteractionConcerns::Loggable::BacktraceCleaner
- Defined in:
- lib/mtk_framework/active_interaction_concerns/loggable.rb
Constant Summary collapse
- APP_DIRS_PATTERN =
%r{^/?(app|config|lib|test|spec|\(\w*\))}.freeze
- CURRENT_FILE =
__FILE__
Instance Method Summary collapse
-
#initialize ⇒ BacktraceCleaner
constructor
A new instance of BacktraceCleaner.
Constructor Details
#initialize ⇒ BacktraceCleaner
Returns a new instance of BacktraceCleaner.
71 72 73 74 75 76 |
# File 'lib/mtk_framework/active_interaction_concerns/loggable.rb', line 71 def initialize super remove_silencers! add_silencer { |line| !APP_DIRS_PATTERN.match?(line) } add_silencer { |line| line.include? current_file } end |