Skip to content

Commit

Permalink
Don't spam the start/stop debug messages in async mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
thedarkone committed Aug 2, 2012
1 parent 181b588 commit 01a7bc6
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ def self.included(klass)
module ClassMethods module ClassMethods
include Instrumenter 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) def unload_containing_file_with_instrumentation(const_name, file)
boost_log('UNLOAD_CONTAINING_FILE', "#{const_name} -> #{file.boost_inspect}") boost_log('UNLOAD_CONTAINING_FILE', "#{const_name} -> #{file.boost_inspect}")
unload_containing_file_without_instrumentation(const_name, file) unload_containing_file_without_instrumentation(const_name, file)
Expand Down Expand Up @@ -90,12 +97,6 @@ def self.applied?
ActiveSupport::Dependencies.singleton_class.include?(self) ActiveSupport::Dependencies.singleton_class.include?(self)
end end


def unload_modified_files!
boost_log('--- START ---')
super
boost_log('--- END ---')
end

def load_file_without_constant_tracking(path, *args) def load_file_without_constant_tracking(path, *args)
other_args = ", #{args.map(&:inspect).join(', ')}" if args.any? other_args = ", #{args.map(&:inspect).join(', ')}" if args.any?
boost_log('LOAD', "load_file(#{path.inspect}#{other_args})") boost_log('LOAD', "load_file(#{path.inspect}#{other_args})")
Expand Down

0 comments on commit 01a7bc6

Please sign in to comment.