lib/dispatch-rider/logging/lifecycle_logger.rb in dispatch-rider-1.6.0 vs lib/dispatch-rider/logging/lifecycle_logger.rb in dispatch-rider-1.6.1
- old
+ new
@@ -9,11 +9,11 @@
def log_got_stop(reason, message)
logger.info formatter.format_got_stop(message, reason)
end
def wrap_handling(message)
- log_start(message)
start_time = Time.now
+ log_start(message)
yield
log_success(message)
rescue => exception
log_fail(message, exception)
raise exception