diff options
author | David Heinemeier Hansson <david@basecamp.com> | 2014-05-20 16:10:15 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@basecamp.com> | 2014-05-20 16:10:15 +0200 |
commit | a8cfb3d042239d968ce0f45e983783f3042ef883 (patch) | |
tree | 7563d2f45d411c27f620f7b1badfb8fd393834bc /lib/active_job/enqueuing.rb | |
parent | 2d19c711d041dd955d3fcaf952d101df9241a65e (diff) | |
parent | a2650112d9971460b257dbe6d440e1641226a11e (diff) | |
download | rails-a8cfb3d042239d968ce0f45e983783f3042ef883.tar.gz rails-a8cfb3d042239d968ce0f45e983783f3042ef883.tar.bz2 rails-a8cfb3d042239d968ce0f45e983783f3042ef883.zip |
Merge pull request #46 from cristianbica/logging
Added logging capabilities
Diffstat (limited to 'lib/active_job/enqueuing.rb')
-rw-r--r-- | lib/active_job/enqueuing.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/active_job/enqueuing.rb b/lib/active_job/enqueuing.rb index 324385216e..46f703481a 100644 --- a/lib/active_job/enqueuing.rb +++ b/lib/active_job/enqueuing.rb @@ -11,6 +11,7 @@ module ActiveJob # The return value is adapter-specific and may change in a future # ActiveJob release. def enqueue(*args) + ActiveSupport::Notifications.instrument "enqueue.active_job", adapter: queue_adapter, job: self, params: args queue_adapter.queue self, *Parameters.serialize(args) end end |