More verbose logging on location update by cmdr_data

This commit is contained in:
norohind 2021-08-12 02:14:09 +03:00
parent 4e3dd5c946
commit f2d88e04da
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -609,5 +609,6 @@ def cmdr_data(data, is_beta):
if carrier.callsign is not None:
for ship_key in data['ships']:
if data['ships'][ship_key]['station']['name'] == carrier.callsign:
carrier.location = data['ships'][ship_key]['starsystem']['name']
logger.debug(f'Updating FC location according to cmdr_data: "{carrier.location}"')
new_location = data['ships'][ship_key]['starsystem']['name']
logger.debug(f'Updating FC location according to cmdr_data: {carrier.location} -> {new_location}')
carrier.location = new_location