Ignore:
Timestamp:
22 May 2012, 23:30:17 (12 years ago)
Author:
uli
Message:

Use DatedRotatingFileHandler? for logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_logger.py

    r7811 r8492  
    162162        self.assertEqual(len(result.handlers), 1)
    163163        handler = result.handlers[0]
    164         self.assertEqual(handler.maxBytes, MAX_BYTES)
     164        #self.assertEqual(handler.maxBytes, MAX_BYTES)
    165165        self.assertEqual(handler.backupCount, BACKUP_COUNT)
    166166        self.assertTrue(result.propagate is False)
     
    254254        self.assertTrue(isinstance(
    255255                handler, logging.handlers.RotatingFileHandler))
    256         self.assertEqual(handler.maxBytes, MAX_BYTES)
     256        #self.assertEqual(handler.maxBytes, MAX_BYTES)
    257257        self.assertEqual(handler.backupCount, BACKUP_COUNT)
    258258        self.assertTrue(handler.baseFilename.endswith('logs/sample.log'))
Note: See TracChangeset for help on using the changeset viewer.