Redact stream url credentials in debug logging (#66407)
This commit is contained in:
parent
e069074f9e
commit
2e54daa61f
1 changed files with 4 additions and 2 deletions
|
@ -312,7 +312,9 @@ class Stream:
|
|||
|
||||
def update_source(self, new_source: str) -> None:
|
||||
"""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._fast_restart_once = True
|
||||
self._thread_quit.set()
|
||||
|
@ -359,7 +361,7 @@ class Stream:
|
|||
self._logger.debug(
|
||||
"Restarting stream worker in %d seconds: %s",
|
||||
wait_timeout,
|
||||
self.source,
|
||||
redact_credentials(str(self.source)),
|
||||
)
|
||||
self._worker_finished()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue