lib/tailog/watch_methods.rb in tailog-0.3.0 vs lib/tailog/watch_methods.rb in tailog-0.3.1

- old
+ new

@@ -46,10 +46,10 @@ def build_watch_method target, method raw_method = "watch_method_raw_#{method}" return <<-EOS alias_method :#{raw_method}, :#{method} def #{method} *args - Tailog::WatchMethods.logger.info "Method called: #{target} with \#{args}" + Tailog::WatchMethods.logger.info "Method called: #{target} \#{self} with \#{args}" start = Time.now result = send :#{raw_method}, *args Tailog::WatchMethods.logger.info "Method finished: #{target} with \#{result} in \#{(Time.now - start) * 1000} ms" result rescue => error