Skip to content

Commit

Permalink
add log file info to production infos
Browse files Browse the repository at this point in the history
  • Loading branch information
osallou committed Jan 6, 2021
1 parent 853f0ea commit 8a0fc4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3.1.19 [UNRELEASED]:
Add tgz archive support
Add log file info to production info
3.1.18:
Python 3 support only
If multiple files match release.file, take most recent one
Expand Down
7 changes: 5 additions & 2 deletions biomaj/bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def get_bank_release_info(self, full=False):
str(last_update),
str(release)])
# Bank production info header
prod_info.append(["Session", "Remote release", "Release", "Directory", "Freeze", "Format(s)"])
prod_info.append(["Session", "Remote release", "Release", "Directory", "Freeze", "Format(s)", "Log file"])
for prod in _bank['production']:
data_dir = self.config.get('data.dir')
dir_version = self.config.get('dir.version')
Expand All @@ -205,7 +205,9 @@ def get_bank_release_info(self, full=False):
prod['release'],
release_dir,
'yes' if 'freeze' in prod and prod['freeze'] else 'no',
formats])
formats,
prod.get('log_file', '')
])
# Bank pending info header
if 'pending' in _bank and len(_bank['pending']) > 0:
pend_info.append(["Pending release", "Last run"])
Expand Down Expand Up @@ -579,6 +581,7 @@ def save_session(self):
'data_dir': self.session._session['data_dir'],
'dir_version': self.session._session['dir_version'],
'prod_dir': prod_dir,
'log_file': self.session._session['log_file'],
'freeze': False}
self.bank['production'].append(production)
self.banks.update({'name': self.name},
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run(self):
'url': 'http://biomaj.genouest.org',
'download_url': 'http://biomaj.genouest.org',
'author_email': 'olivier.sallou@irisa.fr',
'version': '3.1.18',
'version': '3.1.19',
'classifiers': [
# How mature is this project? Common values are
# 3 - Alpha
Expand Down

0 comments on commit 8a0fc4a

Please sign in to comment.