aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/log_subscriber.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-131-1/+0
| | | | | | | | | | | We sometimes say "✂️ newline after `private`" in a code review (e.g. https://github.com/rails/rails/pull/18546#discussion_r23188776, https://github.com/rails/rails/pull/34832#discussion_r244847195). Now `Layout/EmptyLinesAroundAccessModifier` cop have new enforced style `EnforcedStyle: only_before` (https://github.com/rubocop-hq/rubocop/pull/7059). That cop and enforced style will reduce the our code review cost.
* Fix examples in ActiveSupport::LogSubscriber docsGannon McGibbon2019-01-011-3/+3
| | | | [ci skip]
* Add examples describing error handling in ActiveSupport::Notifications and ↵Mariusz Hausenplas2018-12-141-7/+30
| | | | ActiveSupport::LogSubscriber documentation files
* [Active Support] require_relative => requireAkira Matsuda2017-10-211-3/+3
| | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* [Active Support] require => require_relativeAkira Matsuda2017-07-011-3/+3
|
* Merge pull request #29140 from notEthan/log_subscribed_avoid_rescuingRafael França2017-06-161-2/+4
|\ | | | | Log subscriber - avoid rescuing certain exceptions
| * check that logger is defined in log subscriber rescue before loggingEthan2017-05-241-1/+3
| |
| * lob subscriber should only rescue StandardError, not ExceptionEthan2017-05-241-1/+1
| |
* | Use mattr_accessor default: option throughout the projectGenadi Samokovarov2017-06-031-2/+1
|/
* Privatize unneededly protected methods in Active SupportAkira Matsuda2016-12-241-2/+2
|
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
|
* applies new string literal convention in activesupport/libXavier Noria2016-08-061-3/+3
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Improve sql logging coloration in `ActiveRecord::LogSubscriber`.Peter Boling2015-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | - Improves coloring for statements like: # Become WHITE SELECT * FROM ( SELECT * FROM mytable FOR UPDATE ) ss WHERE col1 = 5; LOCK TABLE table_name IN ACCESS EXCLUSIVE MODE; # Becomes RED ROLLBACK - Reinstates the coloration of the `payload[:name]`. Instead of simple alternating colors, adds meaning: - `MAGENTA` for `"SQL"` or `blank?` payload names - `CYAN` for Model Load/Exists - Introduces specs for sql coloration. - Introduces specs for payload name coloration. GH#20885
* Extract a base class from ActiveSupport::LogSubscriberDaniel Schierbeck2013-04-161-43/+7
| | | | | | Adds a ActiveSupport::Subscriber base class that LogSubscriber inherits from. By inheriting from Subscriber, other kinds of subscribers can take advantage of the event attachment system.
* Fix some railties test warningsVipul A M2013-04-031-3/+2
|
* adding missing requiresAaron Patterson2013-01-091-1/+3
|
* update AS docs [ci skip]Francesco Rodriguez2012-09-171-11/+13
|
* logger is a singleton, just flush the singletonAaron Patterson2012-06-201-11/+1
|
* use thread local queues.Aaron Patterson2012-06-201-4/+10
| | | | | Log listener is a singleton shared across threads, so make sure the event queues are local to each thread.
* Correct the AP test。タコ焼き仮面2012-06-191-0/+1
|
* make logger a singleton on the classAaron Patterson2012-06-191-3/+7
|
* listeners are per thread, so remove nested hashAaron Patterson2012-06-191-6/+4
|
* make events not use date and time to determine parent_of. fixes #5932タコ焼き仮面2012-06-181-6/+27
|
* Avoid unnecessary catching of Exception instead of StandardError.Dylan Smith2012-06-171-1/+1
|
* Symbol responds_to :upcase & :downcase in Ruby >= 1.9Akira Matsuda2012-06-061-1/+1
|
* stop `to_s`ing method namesAkira Matsuda2012-06-061-1/+1
| | | | Module#methods are Symbols in Ruby >= 1.9
* Remove deprecation from AS::Deprecation behavior, some minor cleanupsCarlos Antonio da Silva2012-03-161-4/+4
| | | | | | | | | * Refactor log subscriber, use select! to avoid a new object * Remove deprecation messages related to AS::Deprecation behavior This was added about 2 years ago for Rails 3: https://github.com/rails/rails/commit/d4c7d3fd94e5a885a6366eaeb3b908bb58ffd4db * Remove some not used requires * Refactor delegate to avoid string conversions and if statements inside each block
* defined the actual logger signatureAaron Patterson2012-01-201-2/+2
|
* added the backtrace so errors can be foundAaron Patterson2012-01-201-1/+1
|
* grammar changes to log subscriber docsMatt Jankowski2011-06-221-4/+4
|
* simplifying buffered logger for easier and slightly more performant codes. ↵Aaron Patterson2011-04-261-1/+1
| | | | pumpkin
* more style changessuchasurge2011-03-061-1/+1
|
* Makes use of class << self instead of def self.Santiago Pastorino2010-08-151-32/+31
|
* Whitespace and example identationJosep M. Bach2010-08-151-2/+2
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* fixing typoNeeraj Singh2010-07-231-1/+1
|
* avoid proc activation every time a log message is madeAaron Patterson2010-07-181-9/+14
|
* Remove previously defined class method logger to supress warnings in Active ↵rohit2010-06-261-0/+4
| | | | | | Support test suites. [#4618 state:open] Signed-off-by: José Valim <jose.valim@gmail.com>
* Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵José Valim2010-06-241-0/+114
frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]