Changeset 9013
- Timestamp:
- 03/13/08 01:54:34 (1 year ago)
- Files:
-
- trunk/activesupport/CHANGELOG (modified) (1 diff)
- trunk/activesupport/lib/active_support/buffered_logger.rb (modified) (1 diff)
- trunk/activesupport/test/buffered_logger_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/CHANGELOG
r9009 r9013 1 1 *SVN* 2 3 * Fixed that BufferedLogger should create its own directory if one doesn't already exist #11285 [lotswholetime] 2 4 3 5 * Fix Numeric time tests broken by DST change by anchoring them to fixed times instead of Time.now. Anchor TimeZone#now DST test to time specified with Time.at instead of Time.local to work around platform differences with Time.local and DST representation [Geoff Buesing] trunk/activesupport/lib/active_support/buffered_logger.rb
r8638 r9013 48 48 @log.sync = true 49 49 else 50 FileUtils.mkdir_p(File.dirname(log)) 50 51 @log = open(log, (File::WRONLY | File::APPEND | File::CREAT)) 51 52 @log.sync = true trunk/activesupport/test/buffered_logger_test.rb
r8563 r9013 105 105 assert !@output.string.empty?, @output.string 106 106 end 107 108 def test_should_create_the_log_directory_if_it_doesnt_exist 109 tmp_directory = File.join(File.dirname(__FILE__), "tmp") 110 log_file = File.join(tmp_directory, "development.log") 111 assert !File.exist?(tmp_directory) 112 @logger = ActiveSupport::BufferedLogger.new(log_file) 113 assert File.exist?(tmp_directory) 114 ensure 115 FileUtils.rm_rf(tmp_directory) 116 end 107 117 end