fzwoch / obs-gstreamer

GStreamer OBS Studio plugin
GNU General Public License v2.0
349 stars 34 forks source link

Clarify OBS log messages (show obs-source-name) #95

Closed kamalmostafa closed 1 year ago

kamalmostafa commented 1 year ago

The same treatment could be applied to the other obs-streamer plugin components as well, if this is palatable.


Add "[obs-gstreamer] obs-source-name:" to all blog() messages

And improve a few log messages. E.g. Instead of mysterious OBS log messages like this:

 error: syntax error
 error: Watchdog triggered
 error: Internal data stream error.

Generates log messages which show the name of the plugin and of the OBS source instance:

 error: [obs-gstreamer] Camera-1-rtsp: Cannot start pipeline: syntax error
 error: [obs-gstreamer] Camera-1-rtsp: Watchdog triggered
 error: [obs-gstreamer] Camera-1-rtsp: Internal data stream error.