lib/backtracer_ping.rb in backtracer-0.3.0 vs lib/backtracer_ping.rb in backtracer-0.4.0
- old
+ new
@@ -37,12 +37,14 @@
time = $ping_interval || 5 # seconds
time = 1 if $0 == __FILE__
Thread.new {
loop {
sleep time
- pp fella.call
+ pp 'current stack trace', Time.now, fella.call
}
}
-if $0 == __FILE__ # a test
+require File.dirname(__FILE__) + '/backtracer' # we want the normal backtracer, too
+
+if $0 == __FILE__ # i.e. a test
sleep
end
\ No newline at end of file