Permalink
Browse files

DailyLogFile has no kwarg maxRotatedFiles

  • Loading branch information...
1 parent 9df9da4 commit 5d688543821d6c4778acbcb7bf657f7d0b398903 @mriehl mriehl committed Mar 19, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/main/python/yadtreceiver/__init__.py
  2. +1 −1 src/unittest/python/yadtreceiver_tests.py
@@ -221,7 +221,7 @@ def set_configuration(self, configuration):
def initialize_twisted_logging(self):
- log_file = DailyLogFile.fromFullPath(self.configuration['log_filename'], maxRotatedFiles=30)
+ log_file = DailyLogFile.fromFullPath(self.configuration['log_filename'])
log.startLogging(log_file)
def startService(self):
@@ -45,7 +45,7 @@ def test_should_call_start_logging_when_initializing_twisted_logging(self, mock_
receiver.initialize_twisted_logging()
- self.assertEqual(call('log/file.log', maxRotatedFiles=30), mock_log_file_class.fromFullPath.call_args)
+ self.assertEqual(call('log/file.log'), mock_log_file_class.fromFullPath.call_args)
self.assertEquals(call(mock_log_file), mock_log.startLogging.call_args)
def test_should_set_configuration(self):

0 comments on commit 5d68854

Please sign in to comment.