mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
logging: change event_name arg (#28232)
This doesn't change anything in practice, but makes it harder to write a bug where a kwarg with the name `event` would overwrite the event name. old-commit-hash: 309126a5277a8735f76a2344cfb2aaa3ae13a05a
This commit is contained in:
@@ -153,9 +153,9 @@ class SwagLogger(logging.Logger):
|
||||
def bind_global(self, **kwargs):
|
||||
self.global_ctx.update(kwargs)
|
||||
|
||||
def event(self, event_name, *args, **kwargs):
|
||||
def event(self, event, *args, **kwargs):
|
||||
evt = NiceOrderedDict()
|
||||
evt['event'] = event_name
|
||||
evt['event'] = event
|
||||
if args:
|
||||
evt['args'] = args
|
||||
evt.update(kwargs)
|
||||
|
||||
Reference in New Issue
Block a user