mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-06 10:23:06 +03:00
plugins/eddn: Use logger.trace_if(...)
This commit is contained in:
parent
305f8ca6b0
commit
79a2003b53
@ -87,6 +87,7 @@ HORIZ_SKU = 'ELITE_HORIZONS_V_PLANETARY_LANDINGS'
|
|||||||
|
|
||||||
class EDDN:
|
class EDDN:
|
||||||
"""EDDN Data export."""
|
"""EDDN Data export."""
|
||||||
|
|
||||||
DEBUG = 'eddn' in debug_senders
|
DEBUG = 'eddn' in debug_senders
|
||||||
SERVER = 'https://eddn.edcd.io:4430'
|
SERVER = 'https://eddn.edcd.io:4430'
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
@ -193,7 +194,7 @@ class EDDN:
|
|||||||
and msg['message']['commodities'] == []
|
and msg['message']['commodities'] == []
|
||||||
and r.text == "FAIL: [<ValidationError: '[] is too short'>]"
|
and r.text == "FAIL: [<ValidationError: '[] is too short'>]"
|
||||||
):
|
):
|
||||||
logger.trace("EDDN is still objecting to empty commodities data")
|
logger.trace_if('plugin.eddn', "EDDN is still objecting to empty commodities data")
|
||||||
return # We want to silence warnings otherwise
|
return # We want to silence warnings otherwise
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user