Tag: Debug

Thumb_estock_commonswiki_237532_l

Debug-level Logging for a Single Rails Production Request

5 Nov 2009 at 10:42am 3

We have a large Rails site live which runs with production level logging. Occasionally there is a problem where debug-level logs would help us track down a problem quickly, but we can’t restart one of the Rails servers to have logs put in debug mode for a single request (and don’t want to run in debug mode for long as the servers are heavily used).

For our purposes it would be nice to have just the log output for the single request we want to look at. Rails’ console and the app object to the rescue!