From 2a3f4baa8ce851f1f8882b8955f6029b5c26f10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Verstraeten?= Date: Tue, 1 Sep 2026 15:34:27 +0200 Subject: [PATCH] Log detected main and sub stream properties Adds informational logging for the detected main and sub video streams, including codec, resolution, and FPS, to aid debugging and diagnostics. --- machinery/src/components/kerberos.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/machinery/src/components/kerberos.go b/machinery/src/components/kerberos.go index a372772..0f383e2 100644 --- a/machinery/src/components/kerberos.go +++ b/machinery/src/components/kerberos.go @@ -173,6 +173,7 @@ func RunAgent(configDirectory string, configuration *models.Configuration, commu // Get the video stream from the RTSP server. videoStream := videoStreams[0] + log.Log.Info(fmt.Sprintf("components.Kerberos.RunAgent(): detected main video stream: codec=%s resolution=%dx%d fps=%.2f", videoStream.Name, videoStream.Width, videoStream.Height, videoStream.FPS)) // Get some information from the video stream. width := videoStream.Width @@ -234,6 +235,7 @@ func RunAgent(configDirectory string, configuration *models.Configuration, commu // Get the video stream from the RTSP server. videoSubStream := videoSubStreams[0] + log.Log.Info(fmt.Sprintf("components.Kerberos.RunAgent(): detected sub video stream: codec=%s resolution=%dx%d fps=%.2f", videoSubStream.Name, videoSubStream.Width, videoSubStream.Height, videoSubStream.FPS)) width := videoSubStream.Width height := videoSubStream.Height