lib/gorillib/logger/log.rb in gorillib-0.1.7 vs lib/gorillib/logger/log.rb in gorillib-0.1.8
- old
+ new
@@ -6,9 +6,10 @@
# define Log yourself to prevent its creation
#
::Log = Logger.new($stderr) unless defined?(::Log)
def Log.dump *args
- debug args.map(&:inspect).join("\t")
+ self.debug([
+ args.map(&:inspect),
+ caller.first
+ ].join("\t"))
end unless Log.respond_to?(:dump)
-
-