r17858 - gnucash/branches/2.2/src/gnc-module -  Bug #564209: Improved debuggability for module loading
cstim at cvs.gnucash.org
Sat Jan 31 05:45:34 EST 2009
Date: 2009-01-31 05:45:34 -0500 (Sat, 31 Jan 2009)
New Revision: 17858
 Bug #564209: Improved debuggability for module loading
gnucash-2.2.7 doesn't (IMHO) log enough (any?) information about failures to
load optional modules. It was a bit of work to debug a recent problem (#564033)
and I ended up tweaking gnc_module_load_common() a bit to coax the error
messages out. I slightly reorganized the code in this function to accomplish
1. Make the logic clearer to someone new to the code (i.e., me)
2. If an optional module is found, log any errors in loading it
I tried to maintain the original spirit of not squawking too much about unfound
optional modules while still generating messages about legitimate problems.
Patch by G. Paul Ziemba.
More information about the gnucash-patches