gstd-1.x icon indicating copy to clipboard operation
gstd-1.x copied to clipboard

Q: How to disable gst.log and gstd.log

Open TopperBG opened this issue 3 years ago • 3 comments

Self explain question? Options -l and -d give us abilty to change place of logs but not to turn it off completly. Also is it posible to disable json response at all ?

TopperBG avatar Feb 25 '22 09:02 TopperBG

Anyone ? Are you all happy with massive (2mbit/s) logs ?

TopperBG avatar Mar 11 '22 06:03 TopperBG

Hey @TopperBG . I can think of 3 options:

  1. These logs are managed by the GStreamer debugging subsystem, so you can disable them or reduce them:
gst-client debug_enable false # disable debug
gst-client debug_threshold gstd*:2 # limit gstd logging to warnings and errors
  1. These logs are only saved while in daemon mode. By running gstd in foreground mode these logs are not logged to any file.
  2. I've opened #281 to add the functionality you requested. Now, by passing -L, no log files will be opened even in daemon mode. I'll merge once approved.

michaelgruner avatar Mar 11 '22 15:03 michaelgruner

Hello @michaelgruner, thanks for suggestions

  1. Tested but still fills the logs
  2. Not an option for me to run in foreground
  3. With empty -L option?

TopperBG avatar Mar 14 '22 06:03 TopperBG