mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
EDSM: When we API call a Location event, log all events in that call.
This commit is contained in:
parent
1a6e88f210
commit
a4b334dcfb
@ -554,11 +554,14 @@ def worker() -> None:
|
|||||||
if any(p for p in pending if p['event'] in ('CarrierJump', 'FSDJump', 'Location', 'Docked')):
|
if any(p for p in pending if p['event'] in ('CarrierJump', 'FSDJump', 'Location', 'Docked')):
|
||||||
data_elided = data.copy()
|
data_elided = data.copy()
|
||||||
data_elided['apiKey'] = '<elided>'
|
data_elided['apiKey'] = '<elided>'
|
||||||
logger.trace("pending has at least one of "
|
logger.trace(
|
||||||
"('CarrierJump', 'FSDJump', 'Location', 'Docked')"
|
"pending has at least one of "
|
||||||
" Attempting API cal...")
|
"('CarrierJump', 'FSDJump', 'Location', 'Docked')"
|
||||||
|
" Attempting API call with the following events:"
|
||||||
|
)
|
||||||
|
|
||||||
for p in pending:
|
for p in pending:
|
||||||
|
logger.trace(f"Event: {p!r}")
|
||||||
if p['event'] in ('Location'):
|
if p['event'] in ('Location'):
|
||||||
logger.trace('Attempting API call for "Location" event with timestamp: '
|
logger.trace('Attempting API call for "Location" event with timestamp: '
|
||||||
f'{p["timestamp"]}')
|
f'{p["timestamp"]}')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user