[maemo-commits] [maemo-commits] r18762 - in projects/haf/trunk/sapwood: . server

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Jun 19 14:39:42 EEST 2009
Author: herzi
Date: 2009-06-19 14:39:40 +0300 (Fri, 19 Jun 2009)
New Revision: 18762

Modified:
   projects/haf/trunk/sapwood/ChangeLog
   projects/haf/trunk/sapwood/server/sapwood-server.c
Log:
2009-06-19  Sven Herzberg  <herzi at lanedo.com>

	NB#110565 - sapwood-server server prints debugging stuff to console

	* server/sapwood-server.c (main): only display the message when we are
	in debugging mode


Modified: projects/haf/trunk/sapwood/ChangeLog
===================================================================
--- projects/haf/trunk/sapwood/ChangeLog	2009-06-18 15:24:01 UTC (rev 18761)
+++ projects/haf/trunk/sapwood/ChangeLog	2009-06-19 11:39:40 UTC (rev 18762)
@@ -1,3 +1,10 @@
+2009-06-19  Sven Herzberg  <herzi at lanedo.com>
+
+	NB#110565 - sapwood-server server prints debugging stuff to console
+
+	* server/sapwood-server.c (main): only display the message when we are
+	in debugging mode
+
 2009-02-27  Sven Herzberg  <herzi at lanedo.com>
 
 	NB#103175 - Sapwood crashes when large windows trigger BadAlloc errors

Modified: projects/haf/trunk/sapwood/server/sapwood-server.c
===================================================================
--- projects/haf/trunk/sapwood/server/sapwood-server.c	2009-06-18 15:24:01 UTC (rev 18761)
+++ projects/haf/trunk/sapwood/server/sapwood-server.c	2009-06-19 11:39:40 UTC (rev 18762)
@@ -626,7 +626,12 @@
 			      (GCacheDestroyFunc)pixbuf_open_request_destroy,
 			      pixbuf_open_request_hash, g_direct_hash, pixbuf_open_request_equal);
 
-  g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "server started");
+#ifdef ENABLE_DEBUG
+  if (enable_debug)
+    {
+      g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "server started");
+    }
+#endif
 
   main_loop = g_main_loop_new (NULL, FALSE);
   g_main_loop_run (main_loop);

More information about the maemo-commits mailing list