Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
532e93f9
Commit
532e93f9
authored
Oct 04, 2018
by
Markus Scheidgen
Browse files
Fixed warning logs.
parent
5db1495d
Pipeline
#37526
passed with stages
in 6 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/processing/base.py
View file @
532e93f9
...
...
@@ -200,7 +200,7 @@ class Proc(Document, metaclass=ProcMetaclass):
self
.
save
()
def
warning
(
self
,
*
warnings
,
log_level
=
logging
.
warning
,
**
kwargs
):
def
warning
(
self
,
*
warnings
,
log_level
=
logging
.
WARNING
,
**
kwargs
):
""" Allows to save warnings. Takes strings or exceptions as args. """
assert
not
self
.
completed
...
...
nomad/processing/data.py
View file @
532e93f9
...
...
@@ -117,7 +117,7 @@ class Calc(Proc):
logger
=
logger
.
bind
(
upload_id
=
self
.
upload_id
,
mainfile
=
self
.
mainfile
,
upload_hash
=
upload_hash
,
calc_hash
=
calc_hash
,
archive_id
=
'%s/%s'
%
(
upload_hash
,
calc_hash
)
,
**
kwargs
)
archive_id
=
self
.
archive_id
,
**
kwargs
)
return
logger
...
...
@@ -467,7 +467,7 @@ class Upload(Chord):
calc
.
process
()
total_calcs
+=
1
except
Exception
as
e
:
self
.
warning
(
self
.
error
(
'exception while matching pot. mainfile'
,
mainfile
=
filename
,
exc_info
=
e
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment