Hide critical error

I am running an inference pipeline with DS 6.0 and Gstreamer1.16.2 and every time i start the pipeline i get the critical warning:
gst_buffer_resize_range: assertion 'bufmax >= bufoffs + offset + size' failed

I saw the proposed solutions :

I do not think this cause any serious issues to my pipeline so i want to hide this critical warnings as they are spamming. I have tried GST_DEBUG=0 and custom loggers but it keeps on logging.
Can you guide me on how to handle these logs?

Thank you!

Either update to a GStreamer version that contains this fix: gst/bufferpool: only resize in reset when maxsize is larger (!570) · Merge requests · GStreamer / gstreamer · GitLab

Or patch the NVidia v4l2 plugins to not hit that code path.

Or do things with g_log_set_handler().