-
-
Notifications
You must be signed in to change notification settings - Fork 97
Submit a debug log
Felix Cusson edited this page Nov 25, 2021
·
2 revisions
Use this procedure if you where asked for a debug log or want to provid one for an issue. This guide is also useful if you want to debug the component yourself as it will teach you about:
- enabling the debug log
- finding the relevant part of the log
- In configuration.yaml for you HA add and attach those the relevant logs. Be sure to disable it later as it is quite noisy.
logger:
default: info
logs:
custom_components.spotcast: debug
- Reboot the home assistant instance
- Go in configuration/logs
- Click on 'Load full home assistant log'
- Using ctrl+f in your browser search for 'spotcast'
- Find the setup portion. ex:
2021-11-25 14:39:47 INFO (MainThread) [homeassistant.setup] Setting up spotcast
2021-11-25 14:39:47 DEBUG (SyncWorker_8) [custom_components.spotcast.helpers] spotify integration found
2021-11-25 14:39:47 INFO (MainThread) [homeassistant.setup] Setup of domain spotcast took 0.0 seconds
2021-11-25 14:39:47 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.spotcast
2021-11-25 14:39:47 DEBUG (SyncWorker_7) [custom_components.spotcast.sensor] initiating sensor
2021-11-25 14:39:47 DEBUG (SyncWorker_7) [custom_components.spotcast.sensor] initiating playlist sensor
- Find the device look-up portion. ex:
021-11-25 14:40:47 DEBUG (SyncWorker_6) [custom_components.spotcast.sensor] Getting chromecast devices
2021-11-25 14:40:47 DEBUG (SyncWorker_6) [custom_components.spotcast.helpers] get_cast_devices: media_player.bureau: Bureau cast info: ChromecastInfo(services={ServiceInfo(type='host', data=('192.168.0.167', 8009)), ServiceInfo(type='mdns', data='Google-Nest-Mini-fd8d34175d315c890632d8ddefb4598b._googlecast._tcp.local.')}, uuid='fd8d3417-5d31-5c89-0632-d8ddefb4598b', _manufacturer='Google Inc.', model_name='Google Nest Mini', friendly_name='Bureau', is_audio_group=False, is_dynamic_group=None)
2021-11-25 14:40:47 DEBUG (SyncWorker_6) [custom_components.spotcast.helpers] get_cast_devices: media_player.matin: Matin cast info: ChromecastInfo(services={ServiceInfo(type='host', data=('192.168.0.167', 32146)), ServiceInfo(type='mdns', data='Google-Cast-Group-b34f2de1fc3f47cd838927eeafd3209e-1._googlecast._tcp.local.')}, uuid='b34f2de1-fc3f-47cd-8389-27eeafd3209e', _manufacturer=None, model_name='Google Cast Group', friendly_name='Matin', is_audio_group=True, is_dynamic_group=False)
...
...
- Inside your issue, copy the relevant log information inside a code block