Better logging for station metadata detection

This commit is contained in:
Lucas Verney 2018-01-10 16:46:30 +01:00
parent 083caec041
commit 35c88050df

View File

@ -262,7 +262,7 @@ def guess_stations(flats_list, constraint, config):
if not flat_station: if not flat_station:
# Skip everything if empty station # Skip everything if empty station
LOGGER.info( LOGGER.info(
"No station field for flat %s, skipping stations lookup.", "No stations field for flat %s, skipping stations lookup.",
flat["id"] flat["id"]
) )
continue continue
@ -311,7 +311,7 @@ def guess_stations(flats_list, constraint, config):
break break
LOGGER.info( LOGGER.info(
("Station %s is too far from flat %s (%dm > %dm), " ("Station %s is too far from flat %s (%dm > %dm), "
"discarding it."), "discarding this station."),
station[0], station[0],
flat["id"], flat["id"],
int(distance), int(distance),