diff --git a/catalyst/algorithm.py b/catalyst/algorithm.py index 65e2fa60..8d1b752f 100644 --- a/catalyst/algorithm.py +++ b/catalyst/algorithm.py @@ -139,7 +139,7 @@ from catalyst.sources.benchmark_source import BenchmarkSource from catalyst.catalyst_warnings import ZiplineDeprecationWarning -log = logbook.Logger("ZiplineLog") +log = logbook.Logger("CatalystLog") class TradingAlgorithm(object): diff --git a/catalyst/constants.py b/catalyst/constants.py new file mode 100644 index 00000000..55ccce15 --- /dev/null +++ b/catalyst/constants.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +LOG_LEVEL = 'ERROR' \ No newline at end of file diff --git a/catalyst/exchange/asset_finder_exchange.py b/catalyst/exchange/asset_finder_exchange.py index be8c4a6e..61a0d2c2 100644 --- a/catalyst/exchange/asset_finder_exchange.py +++ b/catalyst/exchange/asset_finder_exchange.py @@ -1,6 +1,8 @@ from logbook import Logger -log = Logger('AssetFinderExchange') +from catalyst.constants import LOG_LEVEL + +log = Logger('AssetFinderExchange', level=LOG_LEVEL) class AssetFinderExchange(object): @@ -41,9 +43,9 @@ class AssetFinderExchange(object): """ for sid in sids: if sid in self._asset_cache: - log.info('got asset from cache: {}'.format(sid)) + log.debug('got asset from cache: {}'.format(sid)) else: - log.info('fetching asset: {}'.format(sid)) + log.debug('fetching asset: {}'.format(sid)) return list() def lookup_symbol(self, symbol, exchange, as_of_date=None, fuzzy=False): diff --git a/catalyst/exchange/exchange_blotter.py b/catalyst/exchange/exchange_blotter.py index c4d451a1..a45791c6 100644 --- a/catalyst/exchange/exchange_blotter.py +++ b/catalyst/exchange/exchange_blotter.py @@ -6,7 +6,9 @@ from catalyst.finance.commission import CommissionModel from catalyst.finance.slippage import SlippageModel from catalyst.finance.transaction import Transaction -log = Logger('exchange_blotter') +from catalyst.constants import LOG_LEVEL + +log = Logger('exchange_blotter', level=LOG_LEVEL) # It seems like we need to accept greater slippage risk in cryptos # Orders won't often close at Equity levels.