obs-outputs: Log unhandled status description as debug level
Certain RTMP status descriptions can contain stream keys. We don't want to log those normally, so log the description for unhandled status codes as RTMP_LOGDEBUG. If someone needs to debug an RTMP server's return messages, they can compile OBS with the RTMP Log Level set to RTMP_LOGDEBUG.
This commit is contained in:
parent
3fd9509c9e
commit
548938c210
@ -3390,10 +3390,9 @@ HandleInvoke(RTMP *r, const char *body, unsigned int nBodySize)
|
||||
|
||||
else
|
||||
{
|
||||
RTMP_Log(RTMP_LOGWARNING, "Unhandled: %s:\n%s", r->Link.tcUrl.av_val, code.av_val);
|
||||
if (description.av_len)
|
||||
RTMP_Log(RTMP_LOGWARNING, "Unhandled: %s:\n%s (%s)", r->Link.tcUrl.av_val, code.av_val, description.av_val);
|
||||
else
|
||||
RTMP_Log(RTMP_LOGWARNING, "Unhandled: %s:\n%s", r->Link.tcUrl.av_val, code.av_val);
|
||||
RTMP_Log(RTMP_LOGDEBUG, "Description: %s", description.av_val);
|
||||
}
|
||||
}
|
||||
else if (AVMATCH(&method, &av_playlist_ready))
|
||||
|
Loading…
x
Reference in New Issue
Block a user