better logging

This commit is contained in:
Florent Guiotte 2020-05-27 09:53:34 +02:00
parent c967d76516
commit 28cbe1411e
2 changed files with 6 additions and 3 deletions

View File

@ -79,9 +79,8 @@ def main(pid=None):
log.info('Expe {} loaded'.format(expe.expe_hash))
try:
run(expe, hostpid)
except Exception as e:
log.error(e)
log.error('Error occured on expe {}'.format(expe.id))
except Exception:
logging.exception('Error occured on expe {}'.format(expe.id))
time.sleep(60)

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
sklearn
sap>=0.2.2
pony
psycopg2