Commit 648fd7ba authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added user to upload processing log. #193

parent 9e9556a2
......@@ -470,7 +470,11 @@ class Upload(Proc):
def get_logger(self, **kwargs):
logger = super().get_logger()
logger = logger.bind(upload_id=self.upload_id,, **kwargs)
user = self.uploader
user_name = '%s %s' % (user.first_name, user.last_name)
logger = logger.bind(
upload_id=self.upload_id,, user_name=user_name,
user_id=user.user_id, **kwargs)
return logger
Markdown is supported
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