You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor logging to use structured logging patterns for Windows media (#1690)
Update all logging statements to use structured logging with named placeholders and argument lists. Add logger.IsEnabled checks to guard value processing. Change logger in WindowsAudioEndPoint to static. Refactor video format logging in WindowsVideoEndPoint to only run when debug logging is enabled and use structured logging.
logger.LogDebug($"Windows audio end point adjusting capture rate from {_waveSourceFormat.SampleRate} to {_audioFormatManager.SelectedFormat.ClockRate}.");
173
+
logger.LogDebug("Windows audio end point adjusting capture rate from {CurrentCaptureRate} to {SelectedCaptureRate}.",
logger.LogDebug($"Windows audio end point adjusting playback rate from {_waveSinkFormat.SampleRate} to {_audioFormatManager.SelectedFormat.ClockRate}.");
191
+
logger.LogDebug("Windows audio end point adjusting playback rate from {CurrentPlaybackRate} to {SelectedPlaybackRate}.",
0 commit comments