Replace redacted stream recorder credentials with '****' (#48832)
This commit is contained in:
parent
2dc46d4516
commit
b0aa64d59c
4 changed files with 12 additions and 13 deletions
|
@ -5,7 +5,7 @@ import logging
|
|||
|
||||
import av
|
||||
|
||||
from . import STREAM_SOURCE_RE
|
||||
from . import redact_credentials
|
||||
from .const import (
|
||||
AUDIO_CODECS,
|
||||
MAX_MISSING_DTS,
|
||||
|
@ -128,9 +128,7 @@ def stream_worker(source, options, segment_buffer, quit_event):
|
|||
try:
|
||||
container = av.open(source, options=options, timeout=STREAM_TIMEOUT)
|
||||
except av.AVError:
|
||||
_LOGGER.error(
|
||||
"Error opening stream %s", STREAM_SOURCE_RE.sub("//", str(source))
|
||||
)
|
||||
_LOGGER.error("Error opening stream %s", redact_credentials(str(source)))
|
||||
return
|
||||
try:
|
||||
video_stream = container.streams.video[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue