Permalink
Browse files

Don't spam the start/stop debug messages in async mode.

  • Loading branch information...
1 parent 181b588 commit 01a7bc6fb4287ae3990a4cfb242992fc0cb32e5f @thedarkone committed Aug 2, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb
@@ -62,6 +62,13 @@ def self.included(klass)
module ClassMethods
include Instrumenter
+ def unload_modified_with_instrumentation!
+ boost_log('--- START ---')
+ unload_modified_without_instrumentation!.tap do
+ boost_log('--- END ---')
+ end
+ end
+
def unload_containing_file_with_instrumentation(const_name, file)
boost_log('UNLOAD_CONTAINING_FILE', "#{const_name} -> #{file.boost_inspect}")
unload_containing_file_without_instrumentation(const_name, file)
@@ -90,12 +97,6 @@ def self.applied?
ActiveSupport::Dependencies.singleton_class.include?(self)
end
- def unload_modified_files!
- boost_log('--- START ---')
- super
- boost_log('--- END ---')
- end
-
def load_file_without_constant_tracking(path, *args)
other_args = ", #{args.map(&:inspect).join(', ')}" if args.any?
boost_log('LOAD', "load_file(#{path.inspect}#{other_args})")

0 comments on commit 01a7bc6

Please sign in to comment.