mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Redact stream url credentials in debug logging (#66407)
This commit is contained in:
parent
e069074f9e
commit
2e54daa61f
@ -312,7 +312,9 @@ class Stream:
|
|||||||
|
|
||||||
def update_source(self, new_source: str) -> None:
|
def update_source(self, new_source: str) -> None:
|
||||||
"""Restart the stream with a new stream source."""
|
"""Restart the stream with a new stream source."""
|
||||||
self._logger.debug("Updating stream source %s", new_source)
|
self._logger.debug(
|
||||||
|
"Updating stream source %s", redact_credentials(str(new_source))
|
||||||
|
)
|
||||||
self.source = new_source
|
self.source = new_source
|
||||||
self._fast_restart_once = True
|
self._fast_restart_once = True
|
||||||
self._thread_quit.set()
|
self._thread_quit.set()
|
||||||
@ -359,7 +361,7 @@ class Stream:
|
|||||||
self._logger.debug(
|
self._logger.debug(
|
||||||
"Restarting stream worker in %d seconds: %s",
|
"Restarting stream worker in %d seconds: %s",
|
||||||
wait_timeout,
|
wait_timeout,
|
||||||
self.source,
|
redact_credentials(str(self.source)),
|
||||||
)
|
)
|
||||||
self._worker_finished()
|
self._worker_finished()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user