Skip to content

Commit 0070f8c

Browse files
authored
Merge pull request #1653 from FCP-INDI/log/len_strat_list
🔊 Add lens of `strat_list_list` and `rp_dct` to engine.log
2 parents a17908e + 99673f4 commit 0070f8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CPAC/pipeline/engine.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ def get_strats(self, resources, debug=False):
404404
len_inputs -= 1
405405
continue
406406
sub_pool = []
407-
407+
if debug:
408+
verbose_logger.debug('len(rp_dct): %s\n', len(rp_dct))
408409
for strat in rp_dct.keys():
409410
json_info = self.get_json(fetched_resource, strat)
410411
cpac_prov = json_info['CpacProvenance']
@@ -447,6 +448,9 @@ def get_strats(self, resources, debug=False):
447448
strat_str_list.append(strat_str)
448449
strat_list_list.append(strat_list)
449450

451+
if debug:
452+
verbose_logger.debug('len(strat_list_list): %s\n',
453+
len(strat_list_list))
450454
for strat_list in strat_list_list:
451455

452456
json_dct = {}

0 commit comments

Comments
 (0)