Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 01a7bc6fb4287ae3990a4cfb242992fc0cb32e5f 1 parent 181b588
thedarkone authored
13 lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb
View
@@ -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})")
Please sign in to comment.
Something went wrong with that request. Please try again.