logger level can't decrease once increased

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

logger level can't decrease once increased

Greg Wunder
logger level can't decrease once increased

I'm using gstreamer in an application with access to the stdout from gstreamer via a gst_debug_add_log_function.
Through the user interface in the app, you can change the output level (in gstreamer this calls gst_debug_set_default_threshold).
It appears that setting/getting this value is not a problem, however after increasing the threshold past GST_LEVEL_INFO (3) & then attempting to bring it to a lower value (i.e. GST_LEVEL_WARNING), it appears that the output stays the same.  gst_debug_get_default_threshold at this point shows that I have set it to the lower number, but the output reflects that the higher log level is still being used.  Any ideas on what might be happening?


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: logger level can't decrease once increased

Stefan Sauer
On 24.06.2010 17:20, Greg Wunder wrote:

>
> I'm using gstreamer in an application with access to the stdout from
> gstreamer via a gst_debug_add_log_function.
> Through the user interface in the app, you can change the output level
> (in gstreamer this calls gst_debug_set_default_threshold).
> It appears that setting/getting this value is not a problem, however
> after increasing the threshold past GST_LEVEL_INFO (3) & then
> attempting to bring it to a lower value (i.e. GST_LEVEL_WARNING), it
> appears that the output stays the same.
> gst_debug_get_default_threshold at this point shows that I have set it
> to the lower number, but the output reflects that the higher log level
> is still being used.  Any ideas on what might be happening?
>
Could you check if we have a unit test for that (gstreamer/tests/check).
if not try writing a test that reproduces the issue. On success file a
bug and attach a patch with the test.

Stefan

>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel