[Gnucash-changes] r12327 - gnucash/branches/cashutil - silencing g_messages in favour of logfile

Neil Williams codehelp at cvs.gnucash.org
Wed Jan 11 18:07:57 EST 2006


Author: codehelp
Date: 2006-01-11 18:07:56 -0500 (Wed, 11 Jan 2006)
New Revision: 12327
Trac: http://svn.gnucash.org/trac/changeset/12327

Modified:
   gnucash/branches/cashutil/ChangeLog
   gnucash/branches/cashutil/src/bin/gnucash2.c
   gnucash/branches/cashutil/src/gnc-module/gnc-module.c
   gnucash/branches/cashutil/src/gnome-utils/
Log:
silencing g_messages in favour of logfile

Modified: gnucash/branches/cashutil/ChangeLog
===================================================================
--- gnucash/branches/cashutil/ChangeLog	2006-01-11 22:05:36 UTC (rev 12326)
+++ gnucash/branches/cashutil/ChangeLog	2006-01-11 23:07:56 UTC (rev 12327)
@@ -1,3 +1,37 @@
+2006-01-11  Neil Williams  <linux at codehelp.co.uk>
+
+	Preparing the gnucash2 binary and shutting
+	off gnucash/engine gnc-module.
+	* src/backend/file/gncmod-backend-file.c :
+	* src/import-export/qif-io-core/gncmod-qifiocore.c :
+	* src/bin/gnucash2.c :
+	* src/business/business-core/file/gncmod-business-backend-file.c :
+	* src/engine/gncmod-engine.c :
+	* src/gnc-module/gnc-module.c :
+	* cashutil/src/Makefile.am :
+	* cashutil/src/cashutil.c :
+	* cashutil/configure.ac :
+	* cashutil/src/Makefile.am :
+	* src/app-utils/Makefile.am :
+	* src/app-utils/gncmod-app-utils.c :
+	* src/engine/Makefile.am :
+	* src/engine/test/Makefile.am :
+	* src/gnc-module/Makefile.am :
+	* src/gnc-module/gnc-module.h :
+	* src/gnome-search/gncmod-gnome-search.c :
+	* src/gnome-utils/gncmod-gnome-utils.c :
+	* src/gnome/gncmod-budget.c :
+	* src/import-export/binary-import/gncmod-binary-import.c :
+	* src/import-export/gncmod-generic-import.c :
+	* src/import-export/hbci/gncmod-hbci.c :
+	* src/import-export/log-replay/gncmod-log-replay.c :
+	* src/import-export/mt940/gncmod-mt940-import.c :
+	* src/import-export/ofx/gncmod-ofx-import.c :
+	* src/import-export/qif-import/gncmod-qif-import.c :
+	* src/register/ledger-core/gncmod-ledger-core.c :
+	* src/register/register-core/gncmod-register-core.c :
+	* src/report/report-system/gncmod-report-system.c :
+
 2005-12-10  David Hampton  <hampton at employees.org>
 
 	* src/gnome-utils/gnc-tree-model-account.c:

Modified: gnucash/branches/cashutil/src/bin/gnucash2.c
===================================================================
--- gnucash/branches/cashutil/src/bin/gnucash2.c	2006-01-11 22:05:36 UTC (rev 12326)
+++ gnucash/branches/cashutil/src/bin/gnucash2.c	2006-01-11 23:07:56 UTC (rev 12327)
@@ -145,7 +145,7 @@
 	setenv("LD_LIBRARY_PATH", llp, 1);
 	setenv("GUILE_LOAD_PATH", glibp, 1);
 	setenv("LTDL_LIBRARY_PATH", ltdlp, 1);
-	g_message ("set GNC_MODULE_PATH %s LD_LIBRARY_PATH %s"
+	PINFO ("set GNC_MODULE_PATH %s LD_LIBRARY_PATH %s"
 		" GUILE_LOAD_PATH %s LTDL_LIBRARY_PATH %s", gmp, llp, glibp, ltdlp);
 }
 

Modified: gnucash/branches/cashutil/src/gnc-module/gnc-module.c
===================================================================
--- gnucash/branches/cashutil/src/gnc-module/gnc-module.c	2006-01-11 22:05:36 UTC (rev 12326)
+++ gnucash/branches/cashutil/src/gnc-module/gnc-module.c	2006-01-11 23:07:56 UTC (rev 12327)
@@ -282,10 +282,10 @@
   lt_dlhandle handle;
   lt_ptr modsysver;
 
-  //printf("(init) dlopening %s\n", fullpath);
+  PINFO ("(init) dlopening %s\n", fullpath);
   handle = lt_dlopen(fullpath);
   if (handle == NULL) {
-      g_warning ("Failed to dlopen() '%s': %s\n", fullpath, lt_dlerror());
+      PWARN ("Failed to dlopen() '%s': %s\n", fullpath, lt_dlerror());
       return NULL;
   }
 
@@ -294,15 +294,15 @@
   /* the modsysver tells us what the expected symbols and their
    * types are */
   if (!modsysver) {
-      //printf("(init) closing %s\n", fullpath);
+      PINFO ("(init) closing %s\n", fullpath);
       //lt_dlclose(handle);
       return NULL;
   }
 
   if (*(int *)modsysver != 0) {
       /* unsupported module system interface version */
-      /* printf("\n** WARNING ** : module '%s' requires newer module system\n",
-         fullpath); */
+      PERR("\n** WARNING ** : module '%s' requires newer module system\n",
+         fullpath);
       //lt_dlclose(handle);
       return NULL;
   }
@@ -317,7 +317,7 @@
       
       if (!(initfunc && pathfunc && descripfunc && interface &&
             revision && age)) {
-          g_warning ("module '%s' does not match module signature\n",
+          PWARN ("module '%s' does not match module signature\n",
                      fullpath);
           //lt_dlclose(handle);
           return NULL;
@@ -334,7 +334,7 @@
           info->module_interface   = *(int *)interface;
           info->module_age         = *(int *)age;
           info->module_revision    = *(int *)revision;
-          //printf("(init) closing %s\n", fullpath);
+          PINFO ("(init) closing %s\n", fullpath);
           //lt_dlclose(handle);
           return info;
       }
@@ -465,12 +465,12 @@
       }
       else
       {
-        g_warning ("module init failed: %s", module_name);
+        PERR ("module init failed: %s", module_name);
         return NULL;
       }
     }
     else {
-      g_warning ("module has no init func: %s", module_name);
+      PERR ("module has no init func: %s", module_name);
       return NULL;
     }
   }
@@ -480,7 +480,7 @@
     lt_dlhandle   handle = NULL;
 
 	if(modinfo) {
-      g_message("(load) dlopening %s\n", modinfo->module_filepath);
+      PINFO("(load) dlopening %s\n", modinfo->module_filepath);
 	}
 
     if(modinfo && ((handle = lt_dlopen(modinfo->module_filepath)) != NULL)) 
@@ -502,7 +502,7 @@
         if(!info->init_func(0)) 
         {
           /* init failed. unload the module. */
-          g_warning ("Initialization failed for module %s\n", module_name);
+          PERR ("Initialization failed for module %s\n", module_name);
           g_hash_table_remove(loaded_modules, info);
           g_free(info->filename);
           g_free(info);
@@ -514,7 +514,7 @@
       }
       else 
       {
-        g_warning ("Module %s (%s) is not a gnc-module.\n", module_name,
+        PWARN ("Module %s (%s) is not a gnc-module.\n", module_name,
                    modinfo->module_filepath);
         //lt_dlclose(handle);
       }
@@ -522,9 +522,9 @@
     }
     else if (!optional)
     {
-      g_warning ("Failed to open module %s", module_name);
+      PWARN ("Failed to open module %s", module_name);
       if(modinfo) printf(": %s\n", lt_dlerror());
-      else g_warning (": could not locate %s interface v.%d\n",
+      else PWARN (": could not locate %s interface v.%d\n",
                       module_name, interface);
       return NULL;
     }
@@ -585,7 +585,7 @@
   }
   else 
   {
-    g_warning ("Failed to unload module %p (it is not loaded)\n", module);
+    PWARN ("Failed to unload module %p (it is not loaded)\n", module);
     return 0;
   }
 }


Property changes on: gnucash/branches/cashutil/src/gnome-utils
___________________________________________________________________
Name: svn:ignore
   - Makefile
Makefile.in
*.gladep
*.lo
*.la
.deps
.libs
.scm-links
gnc-dir.h
gw-gnome-utils.html
gw-gnome-utils.h
gw-gnome-utils.scm
gw-gnome-utils.c
*gnc-version.h
gnc-svninfo.h
g-wrapped
gnucash


semantic.cache

   + Makefile
Makefile.in
*.gladep
*.lo
*.la
.deps
.libs
.scm-links
gnc-dir.h
gw-gnome-utils.html
gw-gnome-utils.h
gw-gnome-utils.scm
gw-gnome-utils.c
*gnc-version.h
gnc-svninfo.h
g-wrapped
gnucash
_gnc_svninfo.h
semantic.cache




More information about the gnucash-changes mailing list