Skip to content
Snippets Groups Projects
Commit 9274ff9c authored by payno's avatar payno
Browse files

[datatransfer] update log message to use porcessSucceed and processStarted

parent cc698378
No related branches found
No related tags found
No related merge requests found
......@@ -366,14 +366,22 @@ class FolderTransfert(SingleProcess):
entry = 'entry'
if isinstance(output_scan, HDF5TomoScan):
entry = output_scan.entry
self.register_process(process_file=output_scan.process_file,
entry=entry, results=results,
process_index=output_scan.pop_process_index(),
configuration=None)
logger.processEnded('transfert succeed',
extra={logconfig.DOC_TITLE: self._scheme_title,
logconfig.FROM: str(input_scan),
logconfig.TO: str(output_scan)})
self.register_process(
process_file=output_scan.process_file,
entry=entry,
results=results,
process_index=output_scan.pop_process_index(),
configuration=None,
)
logger.processSucceed(
"transfer succeed of {} to {}".format(str(input_scan),
str(output_scan)),
extra={
logconfig.DOC_TITLE: self._scheme_title,
logconfig.FROM: str(input_scan),
logconfig.TO: str(output_scan),
},
)
self.signalTransfertOk(input_scan=input_scan, output_scan=output_scan)
def signalTransfertOk(self, input_scan, output_scan):
......@@ -488,9 +496,8 @@ class FolderTransfert(SingleProcess):
print('### copying files ', scanID, " to ", outputdir)
print('### ...')
info = 'start moving folder from %s to %s' % (scanID, outputdir)
logger.info(info,
extra={logconfig.DOC_TITLE: self._scheme_title})
info = "start moving folder from %s to %s" % (scanID, outputdir)
logger.processStarted(info, extra={logconfig.DOC_TITLE: self._scheme_title})
def _signalCopyFailed(self):
self._copying = False
......
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