Skip to content
Snippets Groups Projects
Commit 532e93f9 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed warning logs.

parent 5db1495d
No related branches found
No related tags found
1 merge request!17Files
Pipeline #37526 passed
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment