g_return

Linas Vepstas linas at linas.org
Mon Aug 16 17:48:11 EDT 2004


On Mon, Aug 16, 2004 at 10:16:10PM +0100, Neil Williams was heard to remark:
> On Monday 16 August 2004 8:22, Linas Vepstas wrote:
> > > As is, that is completely silent, no message at all.
> >
> > Make sure that the code in src/engine/gnc-trace.c isn't dumping all
> > messages to a logfile (e.g. /tmp/gnucash.trace or something like that).
> 
> Aha! Thanks Linas!
> 
> Was this intended?

Is there some trite change that wrecks things, like a line that's 
commented out?  I might of checked in something like that by accident.

> Diff for /gnucash/src/engine/gnc-trace.c between versions 1.2 and 1.2.20.8
> void gnc_log_init (void)
> {
>    fout = stderr;
>    fout = stdout;
>    fout = fopen ("/tmp/gnucash.trace", "w");
>    g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_MASK, fh_printer, fout);
> }
> (Doesn't look right to me).

What doesn't look right?

You, as developer, can pick whatever 'fout' you want; there's three
in there to just help remind you that this is the place where you 
can play with the setting (as opposed to trying to redirect i/o 
in some other way).  If you turn on 'debug', you will get megabtyes of
traces that are impractical to sent to stdout, thus they get sent to
file, which can then be grepped...

--linas



-- 
pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <linas at linas.org>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933


More information about the gnucash-devel mailing list