1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

24 commits

Author SHA1 Message Date
Aaron Patterson
21a71cd5d8 instrumenter can't be cached because the app could be called from
different threads.
2013-10-04 17:52:26 -07:00
thedarkone
a0907bbdad "Naked" rescue clauses only catch StandardError subclasses.
Similar to #11497.
2013-08-06 17:04:02 +02:00
Rafael Mendonça França
d86ccec097 Use the right instrumentation name
The pattern is event.component

Closes #11769

Conflicts:
	railties/CHANGELOG.md
2013-08-05 18:20:22 -03:00
Aaron Patterson
ffa9540fd3 fire a notification when the request stops / starts 2013-01-09 15:34:58 -08:00
Aaron Patterson
23b69c95ac extract logger and development checks to methods 2013-01-09 15:34:58 -08:00
Aaron Patterson
3ae8d6d67c make the extremely useful logs debug level 2012-11-09 13:49:46 +09:00
Jeremy Kemper
d073116455 Gotta log each spacer line separately to ensure each is tagged 2012-10-06 22:16:39 -07:00
Jeremy Kemper
1a7049906e Tag the blank log line between dev requests so it's easier to filter out entire requests with grep -v without leaving a stray newline behind. Example:
# Tag asset requests so it's easy to filter them from dev logs
  config.log_tags = [
    -> request { :assets if request.path.starts_with?(config.assets.prefix) },
    -> request { request.uuid }
  ]

  # Watch the logs, ignoring asset requests
  $ tail -100f log/development.log | grep -v assets
2012-10-06 22:10:14 -07:00
Jeremy Kemper
c131211c67 Tune up Rails::Rack::Logger. Only put space between requests in development logs. 2012-09-26 15:19:34 -07:00
Jeremy Kemper
d1cbcd781b Log newlines separately to ensure the 'Started GET ...' line has a tag on the same line 2012-09-25 20:27:26 -07:00
Jeremy Kemper
152e3ac3d2 Only apply log tags if the logger supports it 2012-09-24 14:07:10 -07:00
José Valim
c83d9a11c0 Unify logger and taggedlogging middleware as both address logging concerns. 2011-10-19 22:39:11 +02:00
David Heinemeier Hansson
afde6fdd5e Added X-Request-Id tracking and TaggedLogging to easily log that and other production concerns 2011-10-19 12:59:33 -05:00
Prem Sichanugrist & Xavier Noria
68802d0fbe Filter sensitive query string parameters in the log [#6244 state:committed]
This provides more safety to applications that put secret information in the query string, such as API keys or SSO tokens.

Signed-off-by: Xavier Noria <fxn@hashref.com>
2011-03-11 00:16:18 +01:00
Michael Koziarski
199d1abeb2 Use the derived request_method from AD::Request rather than the raw REQUEST_METHOD from rack.
This takes _method into account so the log shows the method which ActionController sees.
2011-01-18 14:43:54 +13:00
José Valim
6788db824a Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved] 2010-06-24 13:23:43 +02:00
wycats
67a2d648d8 Improve performance of the Logger middleware by using simpler versions of methods 2010-06-04 20:11:05 -07:00
Carlhuda
52efbdcdef Add caller to request_uri deprecation notice 2010-03-03 21:24:00 -08:00
Prem Sichanugrist
f0523f72b4 Rename Rails::Subscriber to Rails::LogSubscriber 2010-02-16 22:36:15 +01:00
José Valim
081dfca33a Clean up Rails::Rack::Logger. 2010-01-26 15:37:45 +01:00
José Valim
378464a2e4 Default to sync instrumentation. 2010-01-21 13:09:12 +01:00
Jeremy Kemper
a10e473b81 Rename Rails::Rack::Logger -> LogTailer. Speed up log mtime checks. 2008-12-18 14:42:06 -08:00
Jeremy Kemper
6703f909c7 Cheaper log tail time comparison 2008-12-18 14:17:43 -08:00
Joshua Peek
e9ae2b2f4c Added rack logger middleware that tails the environment log 2008-08-19 00:18:26 -05:00