Skip to content

Commit

Permalink
fix(logs): fix logs in refchef cook
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandogelin committed Sep 4, 2019
1 parent f89161f commit 66d1aaf
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions scripts/refchef-cook
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,22 @@ def main():
master = read_menu(conf)

for r in master.keys():
for i in master[r]['levels']['references']:
if not i['complete']['status']:
logging.info(u"""
-------------------------------------------
The folowing references will be downloaded:
- {0}
===========================================
""".format(r))
else:
logging.info("""
No references to download.
""")
for type in ['references', 'indices', 'annotations']:
try:
for i in master[r]['levels']['references']:
if not i['complete']['status']:
logging.info(u"""
-------------------------------------------
The folowing references will be downloaded:
- {0}
===========================================
""".format(r))
else:
logging.info("""
No references to download.
""")
except:
pass

## Execute, commit and push steps.
if arguments.execute:
Expand Down

0 comments on commit 66d1aaf

Please sign in to comment.