Skip to content
Snippets Groups Projects
Commit b631a2f9 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-699: logging

parent c685607f
No related branches found
No related tags found
No related merge requests found
......@@ -111,14 +111,10 @@ class IngestEventMessageHandler(AbstractMessageHandler):
def _log_job_notification(self, status: str, job_dict: dict):
try:
msg = ''
if status == 'JobProgress':
msg += 'job is transferring. '
elif status == 'TransferServiceStatus':
msg += 'TransferServiceStatus: '
if status in ['JobProgress', 'TransferServiceStatus', 'TaskProgress', 'TaskFinished']:
msg = "ingest %s " % status
else:
msg += 'job status changed to %s. ' % (status,)
msg = 'ingest job status changed to %s. ' % (status,)
msg += 'project: %s export_id: %s type: %s server: %s' % (job_dict.get('project'),
job_dict.get('export_id'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment