From e4003cdc4c9dd78dd14958435447c5d0d6bd4158 Mon Sep 17 00:00:00 2001 From: scottsanderson Date: Sun, 1 Jul 2012 20:28:49 -0400 Subject: [PATCH] new algorithm for testing logging --- zipline/test_algorithms.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/zipline/test_algorithms.py b/zipline/test_algorithms.py index fa68366e..059e68d5 100644 --- a/zipline/test_algorithms.py +++ b/zipline/test_algorithms.py @@ -138,14 +138,13 @@ class NoopAlgorithm(object): def get_sid_filter(self): return None -class LogTestAlgorithm(object): +class TestPrintAlgorithm(): def __init__(self): - import logbook - self.log = logbook.Logger() + pass def initialize(self): - self.log.info("Initialize") + print "Initializing" def set_order(self, order_callable): pass @@ -154,7 +153,7 @@ class LogTestAlgorithm(object): pass def handle_data(self, data): - self.log.info("handle_data") + print "handle_data" pass def get_sid_filter(self):