提交 548938c2 编写于 作者: R Ryan Foster 提交者: Jim

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.
上级 3fd9509c
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册