[gst-cvs] gstreamer: info: write debugging output to file if GST_DEBUG_FILE environment variable is set
t.i.m at zen.co.uk
Sat Aug 7 08:12:05 PDT 2010
On Sat, 2010-08-07 at 15:18 +0300, Stefan Kost wrote:
> I would have appreciated a discussion before doing that change.
> It is creating
> quite a mess in buzztards unit tests. I was:
> 1.) writing a different log file for each test binary
> 2.) using log handler to check for expected GST_ERROR / GST_WARNING lines.
> My woraround for 1) is g_setenv("GST_DEBUG_FILE", "xxx", TRUE); before gst_init().
> For 2.) my fate is to rewrite 40 tests.
Well, I'm not particularly attached to that change. I thought it would
be a neat thing to add. If it causes more problems than it solves and/or
people feel it's the wrong thing to do despite the glib API docs
explicitly stating that other libraries' debug logging shouldn't go
through these handlers, it can be reverted.
Out of curiosity, why were you not using GStreamer's log handler for
More information about the Gstreamer-commits