Method: DevSuite::RequestLogger.with_logging
- Defined in:
- lib/dev_suite/request_logger/request_logger.rb
.with_logging(&block) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/dev_suite/request_logger/request_logger.rb', line 13 def with_logging(&block) enable_adapters block.call ensure # Ensure that adapters are disabled even if an exception is raised disable_adapters end |