1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-22 20:00:29 +03:00

plug.py: Use logger.trace_if(...)

This commit is contained in:
Athanasius 2021-08-13 14:45:11 +01:00
parent 1378f765cc
commit c8081f339a
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -257,8 +257,8 @@ def notify_journal_entry(cmdr, is_beta, system, station, entry, state):
:param is_beta: whether the player is in a Beta universe.
:returns: Error message from the first plugin that returns one (if any)
"""
# if entry['event'] in ('Location'):
# logger.trace('Notifying plugins of "Location" event')
if entry['event'] in ('Location'):
logger.trace_if('journal.locations', 'Notifying plugins of "Location" event')
error = None
for plugin in PLUGINS: