Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tomwer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tomotools
tomwer
Commits
9274ff9c
Commit
9274ff9c
authored
4 years ago
by
payno
Browse files
Options
Downloads
Patches
Plain Diff
[datatransfer] update log message to use porcessSucceed and processStarted
parent
cc698378
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tomwer/core/process/datatransfert.py
+18
-11
18 additions, 11 deletions
tomwer/core/process/datatransfert.py
with
18 additions
and
11 deletions
tomwer/core/process/datatransfert.py
+
18
−
11
View file @
9274ff9c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment