You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the library a lot ..i.e. I have a growing set of end users in Home Assistant
As the data is often not (very) good, the logs help me to identify things quicker.
However, pygtfs is not sending out logs but print statements and these are not shown in the Home Assistant logs, also resulting in not showing errors when extracting.
Can you add a proper log output or is this too complex?
2024-05-09 09:14:13.750 DEBUG (MainThread) [custom_components.gtfs2.config_flow] Checkdata pygtfs: extracting with data: {'extract_from': 'url', 'file': 'vv', 'url': 'https://cdn.mbta.com/MBTA_GTFS.zip'}
Loading GTFS data for <class 'pygtfs.gtfs_entities.Agency'>:
Loading GTFS data for <class 'pygtfs.gtfs_entities.Stop'>:
Loading GTFS data for <class 'pygtfs.gtfs_entities.Transfer'>:
Loading GTFS data for <class 'pygtfs.gtfs_entities.Route'>:
Loading GTFS data for <class 'pygtfs.gtfs_entities.Fare'>:
Loading GTFS data for <class 'pygtfs.gtfs_entities.FareRule'>:
Loading GTFS data for <class 'pygtfs.gtfs_entities.ShapePoint'>:
Loading GTFS data for <class 'pygtfs.gtfs_entities.Service'>:
...
for gtfs_class in gtfs_all:
print('Loading GTFS data for %s:' % gtfs_class)
gtfs_filename = gtfs_class.__tablename__ + '.txt'
The text was updated successfully, but these errors were encountered:
vingerha
changed the title
Output are prin-statements, not logging... integration challenge
Output are print-statements, not logging... integration challenge
May 9, 2024
I am using the library a lot ..i.e. I have a growing set of end users in Home Assistant
As the data is often not (very) good, the logs help me to identify things quicker.
However, pygtfs is not sending out logs but print statements and these are not shown in the Home Assistant logs, also resulting in not showing errors when extracting.
Can you add a proper log output or is this too complex?
The text was updated successfully, but these errors were encountered: