diff --git a/cutelog/listener.py b/cutelog/listener.py index 9ac9ad3670d5676d1ad5830f2183bec7d355d817..4638ee702bad5101033f8e24f2ba990169df96c4 100644 --- a/cutelog/listener.py +++ b/cutelog/listener.py @@ -151,7 +151,8 @@ class BenchmarkConnection(LogConnection): def run(self): test_levels = [(10, 'DEBUG'), (20, 'INFO'), (30, 'WARNING'), (40, 'ERROR'), (50, 'CRITICAL'), (21, 'REQ')] - d = {'args': None, # dummy log item + # dummy log item + d = {'args': None, 'created': 0, 'exc_info': None, 'exc_text': 'exception test', @@ -186,3 +187,4 @@ class BenchmarkConnection(LogConnection): self.new_record.emit(r) c += 1 time.sleep(CONFIG.benchmark_interval) + self.connection_finished.emit(self) diff --git a/cutelog/main_window.py b/cutelog/main_window.py index 596b7d3595629c7b9190a0d1352d1a25ce1c9faa..73646b80d36624b8c5261f01c765076bf0f9eaec 100644 --- a/cutelog/main_window.py +++ b/cutelog/main_window.py @@ -349,6 +349,7 @@ class MainWindow(*MainWindowBase): conn.new_record.disconnect(src_logger.on_record) conn.connection_finished.disconnect(src_logger.remove_connection) conn.new_record.connect(dst_logger.on_record) + dst_logger.add_connection(conn) src_logger.connections.clear() self.destroy_logger(src_logger)