Add debug logging

This commit is contained in:
sfigato 2022-09-09 11:08:37 +02:00
parent b7a1d5ac4b
commit 7e7d1fff1e
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -197,6 +197,8 @@ def parse_fr24(
"""
This function parses the given FlightRadar24 data into a pandas DataFrame.
"""
logger.debug("fr24 raw data: %s", data)
if not data:
return None
@ -219,6 +221,7 @@ def parse_fr24(
ts = flight["flight"]["time"]["real"]["arrival"]
real_arrival = datetime.fromtimestamp(ts).strftime("%H:%M")
results[code] = real_arrival
logger.debug(f"{code} -> {real_arrival}")
except: # noqa: E722
continue