Suppress argus gstreamer plugin logs

If Argus API is used via nvarguscamerasrc gstreamer plugin, it outputs bunch of hardware init/de-init logs (GST_ARGUS:, CONSUMER:, PowerServiceHwVic:), e.g.:

$ gst-launch-1.0 nvarguscamerasrc ! nvoverlaysink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 4056 x 3040 FR = 29,999999 fps Duration = 33333334 ; Analog Gain range min 1,000000, max 354,000000; Exposure Range min 16000, max 165770000;

GST_ARGUS: 3840 x 2160 FR = 59,999999 fps Duration = 16666667 ; Analog Gain range min 1,000000, max 354,000000; Exposure Range min 16000, max 165770000;

GST_ARGUS: 1920 x 1080 FR = 59,999999 fps Duration = 16666667 ; Analog Gain range min 1,000000, max 354,000000; Exposure Range min 5000, max 352112000;

GST_ARGUS: 2028 x 1520 FR = 160,000000 fps Duration = 6250000 ; Analog Gain range min 1,000000, max 354,000000; Exposure Range min 3000, max 252525000;

GST_ARGUS: 1348 x 750 FR = 240,000038 fps Duration = 4166666 ; Analog Gain range min 1,000000, max 354,000000; Exposure Range min 0, max 2000000;

GST_ARGUS: 692 x 520 FR = 480,000077 fps Duration = 2083333 ; Analog Gain range min 1,000000, max 354,000000; Exposure Range min 0, max 2000000;

GST_ARGUS: Running with following settings:
   Camera index = 0
   Camera mode  = 2
   Output Stream W = 1920 H = 1080
   seconds to Run    = 0
   Frame Rate = 59,999999
GST_ARGUS: PowerService: requested_clock_Hz=27216000
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:01.330161805
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
GST_ARGUS: Cleaning up
CONSUMER: Done Success
GST_ARGUS: Done Success
Setting pipeline to NULL ...
Freeing pipeline ...
GST_ARGUS:
PowerServiceHwVic::cleanupResources

This verbosity should be controlled via GST_DEBUG env var, but nvidia plugin completely ignores it.

How to disables these messages?

hello nazikus,

those were information of all available sensor modes, which enable by defaults.
if you keep sensor stream running, there’ll no additional messages shown, only error reporting.
thanks

I understand, but I need to disable them completely. Our solution implies often camera switch on and off. And these messages are just polluting the logs. How to disables these logs?

hello nazikus,

it’s using a marco to report the status,
you may have customization to change the log level or removing those information prints.
for example,
$L4T_Sources/r32.4.3/Linux_for_Tegra/source/public/gst-nvarguscamera/gstnvarguscamerasrc.cpp

#define GST_ARGUS_PRINT(...) printf("GST_ARGUS: " __VA_ARGS__)
#define CONSUMER_PRINT(...) printf("CONSUMER: " __VA_ARGS__)

and where do I get these sources and compilation instructions?

hello nazikus,

please access the sources package, there’s README file show the steps to compile the “gst-nvarguscamera” sources.
you’ll need to compile the sources and replace libgstnvarguscamerasrc.so binary, after that, please perform a warm-reboot to make the changes take effect.
thanks