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

This commit is contained in:
Athanasius committed 2021-08-13 15:14:02 +01:00
1 parent 1378f765cc
commit c8081f339a
1 file changed
+2 -2
+2 -2
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: