Skip to content

Cant Get Log.<Level>() Func to work #562

Discussion options

You must be logged in to vote

First, I'm not sure whether the web logs display is the same as the HASS log file. Can anyone confirm that?

Next, I'd like to confirm that you don't see log.debug() messages when you specify:

logger:
  default: debug
  logs:
    custom_components.pyscript: debug

Did you restart HASS after updating the yaml file?

The dynamic setting in the function creates a race condition. Since it's implemented as a service call, the log.debug() immediately following won't appear since the service call is unlikely to have been executed yet. I should add that to the documentation....

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ALEXTHENINJA007
Comment options

Answer selected by ALEXTHENINJA007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants