diff options
Diffstat (limited to 'lib/active_job/logging.rb')
-rw-r--r-- | lib/active_job/logging.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/active_job/logging.rb b/lib/active_job/logging.rb index f06f12087b..22748e3d5f 100644 --- a/lib/active_job/logging.rb +++ b/lib/active_job/logging.rb @@ -10,7 +10,11 @@ module ActiveJob end def enqueue_at(event) - info "Enqueued #{event.payload[:job].name} to #{queue_name(event)} at #{enqueud_at(event)}" + args_info(event) + info "Enqueued #{event.payload[:job].name} to #{queue_name(event)} at #{enqueued_at(event)}" + args_info(event) + end + + def perform(event) + info "Performed #{event.payload[:job].name} to #{queue_name(event)}" + args_info(event) end private @@ -22,7 +26,7 @@ module ActiveJob event.payload[:args].any? ? ": #{event.payload[:args].inspect}" : "" end - def enqueud_at(event) + def enqueued_at(event) Time.at(event.payload[:timestamp]).utc end |