Feat: add some print (before logging)
This commit is contained in:
parent
78576270db
commit
05430196d0
@ -132,15 +132,17 @@ def consume_fluxes(
|
|||||||
wrote_files = []
|
wrote_files = []
|
||||||
|
|
||||||
for name, flux in fluxes.items():
|
for name, flux in fluxes.items():
|
||||||
print(name)
|
print(f"Consume {name}")
|
||||||
logger.info(f"Processing flux {name}")
|
logger.info(f"Processing flux {name}")
|
||||||
src_df = []
|
src_df = []
|
||||||
for filename, df in extract_sources(flux.sources, origin_path):
|
for filename, df in extract_sources(flux.sources, origin_path):
|
||||||
|
print(f"Extracting {filename}")
|
||||||
df, duplicated = split_duplicates(df, str(filename), duplicated)
|
df, duplicated = split_duplicates(df, str(filename), duplicated)
|
||||||
src_df.append(df)
|
src_df.append(df)
|
||||||
|
|
||||||
|
print(f"Execute {flux.transformation.function.__name__}")
|
||||||
df = flux.transformation.function(src_df, **flux.transformation.extra_kwrds)
|
df = flux.transformation.function(src_df, **flux.transformation.extra_kwrds)
|
||||||
|
|
||||||
files = flux.destination.write(df, dest_path, writing_func)
|
files = flux.destination.write(df, dest_path, writing_func)
|
||||||
|
print(files)
|
||||||
wrote_files += files
|
wrote_files += files
|
||||||
return wrote_files
|
return wrote_files
|
||||||
|
Loading…
Reference in New Issue
Block a user