Add debug logging
This commit is contained in:
parent
b7a1d5ac4b
commit
7e7d1fff1e
|
@ -197,6 +197,8 @@ def parse_fr24(
|
||||||
"""
|
"""
|
||||||
This function parses the given FlightRadar24 data into a pandas DataFrame.
|
This function parses the given FlightRadar24 data into a pandas DataFrame.
|
||||||
"""
|
"""
|
||||||
|
logger.debug("fr24 raw data: %s", data)
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -219,6 +221,7 @@ def parse_fr24(
|
||||||
ts = flight["flight"]["time"]["real"]["arrival"]
|
ts = flight["flight"]["time"]["real"]["arrival"]
|
||||||
real_arrival = datetime.fromtimestamp(ts).strftime("%H:%M")
|
real_arrival = datetime.fromtimestamp(ts).strftime("%H:%M")
|
||||||
results[code] = real_arrival
|
results[code] = real_arrival
|
||||||
|
logger.debug(f"{code} -> {real_arrival}")
|
||||||
except: # noqa: E722
|
except: # noqa: E722
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user