aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/logging.rb
Commit message (Collapse)AuthorAgeFilesLines
* [Active Job] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveJobKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Use mattr_accessor default: option throughout the projectGenadi Samokovarov2017-06-031-1/+1
|
* Add error logging to Active JobSteven Bull2017-03-271-3/+10
| | | | | | | | | | | | | | | | | | | | Active Job logging instrumentation is changed to log errors (with backtrace) when a job raises an exception in #perform. This improves debugging during development and test with the default configuration. Prior to Rails 5, the default development configuration ran jobs with InlineAdapter, which would raise exceptions to the caller and be shown in the development log. In Rails 5, the default adapter was changed to AsyncAdapter, which would silently swallow exceptions and log a "Performed SomeJob from Async..." info message. This could be confusing to a developer, as it would seem that the job was performed successfully. This patch removes the "Performed..." info message from the log and adds an error-level "Error performing SomeJob..." log message which includes the exception backtrace for jobs that raise an exception within the #perform method. It provides this behavior for all adapters.
* Include JobID in all ActiveJob info logsBolek Kurowski2017-02-221-2/+2
| | | | | | | | | | Currently we provide the Job ID in logs only related to enqueuing a job. This adds the job id to the remaining ActiveJob logs when: - a job started performing - a job ended performing Providing the job id in those logs will ease searching logs by job id.
* Add three new rubocop rulesRafael Mendonça França2016-08-161-2/+2
| | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-50/+50
|
* applies new string literal convention in activejob/libXavier Noria2016-08-061-8/+8
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Fix jobs overriding AJ::Base#loggerJean Boussier2016-06-171-1/+1
|
* Merge pull request #20116 from cristianbica/activejob-enqueue-loggingArthur Nogueira Neves2015-10-041-1/+1
|\ | | | | ActiveJob - log enqueued message only after the job was successfully enqueued
| * ActiveJob - log enqueued message only after the job was successfully enqueuedCristian Bica2015-05-111-1/+1
| |
* | Properly log nested parameters to Active JobMarek Pieczyk2015-09-081-1/+15
|/ | | | Refactor arguments logging method for Active Job
* `ActiveJob::QueueAdapters::*` are no longer singletonsTamir Duberstein2015-03-111-1/+1
|
* Inline to_global_id conversionAri Pollak2014-12-041-5/+1
|
* Use try instead of checking for GlobalID::IdentificationAri Pollak2014-12-041-5/+1
|
* Only filter GIDable objects; remove cosmetic changesAri Pollak2014-12-011-6/+4
|
* Hide potentially sensitive ActiveJob params from logsAri Pollak2014-11-281-1/+16
| | | | * Show GlobalID instead of full object .inspect output
* Remove redundant `to_s` in interpolationrochefort2014-11-041-1/+1
|
* Add documentation on Active Job.mo khan2014-10-021-1/+1
| | | | | | | This adds documentation for the Active Job API. It includes documentation on how to configure the queue_adapter, and how to create new jobs. It adds links to the various other sections of the Active Job documentation.
* [ci skip] AJ docs fixesAkshay Vishnoi2014-09-181-1/+1
| | | | | | | | 1. Indentation 2. Spaces issues 3. Spelling correction 4. Grammar correction 5. Add #:nodoc: to all internal classes
* Move variable assignment within logging block.Guo Xiang Tan2014-09-051-8/+16
|
* Active Job refactoringCristian Bica2014-09-031-12/+16
|
* Pass logging message through block.Guo Xiang Tan2014-08-221-4/+4
| | | | This follows the good practice listed on http://guides.rubyonrails.org/debugging_rails_applications.html#impact-of-logs-on-performance
* [ActiveJob] require files in logging.rbAbdelkader Boudih2014-08-171-0/+2
|
* Added ActionMailer::DeliverLaterAbdelkader Boudih2014-08-131-2/+2
|
* Add 'activejob/' from commit '14f74a8331f94150dfee653224de8fc837797709'Abdelkader Boudih2014-08-121-0/+88
git-subtree-dir: activejob git-subtree-mainline: b45b99894a60eda434abec94d133a1cfd8de2dda git-subtree-split: 14f74a8331f94150dfee653224de8fc837797709