mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Add current action id instead of logger's one
This commit is contained in:
parent
ea7e9f1da1
commit
4bcde06a79
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@ class MoulinetteLogger(Logger):
|
|||
if self.action_id is not None:
|
||||
extra = kwargs.get('extra', {})
|
||||
if not 'action_id' in extra:
|
||||
extra['action_id'] = self.action_id
|
||||
# FIXME: Get real action_id instead of logger/current one
|
||||
extra['action_id'] = _get_action_id()
|
||||
kwargs['extra'] = extra
|
||||
return Logger._log(self, *args, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue