Browse Source

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.
Ryan Foster 5 years ago
parent
commit
548938c210
1 changed files with 2 additions and 3 deletions
  1. 2 3
      plugins/obs-outputs/librtmp/rtmp.c

+ 2 - 3
plugins/obs-outputs/librtmp/rtmp.c

@@ -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))