Commit 532e93f9 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed warning logs.

parent 5db1495d
Pipeline #37526 passed with stages
in 6 minutes and 21 seconds
......@@ -200,7 +200,7 @@ class Proc(Document, metaclass=ProcMetaclass):
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):
total_calcs += 1
except Exception as e:
'exception while matching pot. mainfile',
mainfile=filename, exc_info=e)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment