File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 66
77from contextlib2 import ExitStack
88import click
9+ from logbook import Logger
910import pandas as pd
1011from trading_calendars import get_calendar
1112from toolz import curry , complement , take
2829import zipline .utils .paths as pth
2930from zipline .utils .preprocess import preprocess
3031
32+ log = Logger (__name__ )
33+
3134
3235def asset_db_path (bundle_name , timestr , environ = None , db_version = None ):
3336 return pth .data_path (
@@ -432,6 +435,7 @@ def ingest(name,
432435 raise ValueError ('Need to ingest a bundle that creates '
433436 'writers in order to downgrade the assets'
434437 ' db.' )
438+ log .info ("Ingesting {}." , name )
435439 bundle .ingest (
436440 environ ,
437441 asset_db_writer ,
@@ -605,6 +609,7 @@ def should_clean(name):
605609 cleaned = set ()
606610 for run in all_runs :
607611 if should_clean (run ):
612+ log .info ("Cleaning {}." , run )
608613 path = pth .data_path ([name , run ], environ = environ )
609614 shutil .rmtree (path )
610615 cleaned .add (path )
You can’t perform that action at this time.
0 commit comments