Changeset 1271
- Timestamp:
- 05/02/05 11:41:24 (4 years ago)
- Files:
-
- trunk/activesupport/CHANGELOG (modified) (1 diff)
- trunk/activesupport/lib/active_support/clean_logger.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/CHANGELOG
r1216 r1271 1 *SVN* 2 3 * Added silencing to the default Logger class 4 5 1 6 *1.0.4* (19th April, 2005) 2 7 trunk/activesupport/lib/active_support/clean_logger.rb
r624 r1271 2 2 3 3 class Logger #:nodoc: 4 # Silences the logger for the duration of the block. 5 def silence 6 result = nil 7 old_logger_level = level 8 self.level = Logger::ERROR 9 result = yield 10 self.level = old_logger_level 11 return result 12 end 13 4 14 private 5 15 remove_const "Format"