mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-19 18:37:39 +03:00
fixed inara per-event killswitch doing nothing
This commit is contained in:
parent
1e691d306e
commit
6a296d4920
@ -341,6 +341,8 @@ def journal_entry( # noqa: C901, CCR001
|
||||
|
||||
elif (ks := killswitch.get_disabled(f'plugins.inara.journal.event.{entry["event"]}')).disabled:
|
||||
logger.warning(f'event {entry["event"]} processing has been disabled via killswitch: {ks.reason}')
|
||||
# this can and WILL break state, but if we're concerned about it sending bad data, we'd disable globally anyway
|
||||
return ''
|
||||
|
||||
this.on_foot = state['OnFoot']
|
||||
event_name: str = entry['event']
|
||||
|
Loading…
x
Reference in New Issue
Block a user