Skip to content

Commit e240cf2

Browse files
stackiaclaude
andcommitted
chore: demote 'Invalid URL format' logs to DEBUG level
These logs are harmless and can confuse users when they appear as errors. Changed to DEBUG level and added actual URL to help with debugging. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 6f0ec0d commit e240cf2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/rtsp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,8 @@ int rtsp_parse_server_url(rtsp_session_t *session, const char *rtsp_url,
442442

443443
/* Parse rtsp://host:port/path?query format */
444444
if (strncmp(url_copy, "rtsp://", 7) != 0) {
445-
logger(LOG_ERROR, "RTSP: Invalid URL format, must start with rtsp://");
445+
logger(LOG_DEBUG, "RTSP: Invalid URL format, must start with rtsp://: %s",
446+
rtsp_url);
446447
return -1;
447448
}
448449

src/service.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,9 @@ service_t *service_create_from_udpxy_url(char *url) {
258258
/* RTSP service - use service_create_from_rtsp_url */
259259
return service_create_from_rtsp_url(url);
260260
} else {
261-
logger(LOG_ERROR,
262-
"Invalid URL format (must start with /rtp/, /udp/, or /rtsp/)");
261+
logger(LOG_DEBUG,
262+
"Invalid URL format (must start with /rtp/, /udp/, or /rtsp/): %s",
263+
url);
263264
return NULL;
264265
}
265266
}

0 commit comments

Comments
 (0)