Index: gnome-session/Makefile.am
===================================================================
--- gnome-session/Makefile.am	(revision 5081)
+++ gnome-session/Makefile.am	(working copy)
@@ -17,6 +17,7 @@ INCLUDES =					\
 	$(GTK_CFLAGS)				\
 	$(POLKIT_GNOME_CFLAGS)			\
 	-I$(top_srcdir)/egg			\
+	-DG_LOG_DOMAIN=\""gnome-session"\"	\
 	-DLOCALE_DIR=\""$(datadir)/locale"\"	\
 	-DDATA_DIR=\""$(datadir)/gnome-session"\" \
 	-DDBUS_LAUNCH=\"dbus-launch\"		\
Index: gnome-session/main.c
===================================================================
--- gnome-session/main.c	(revision 5081)
+++ gnome-session/main.c	(working copy)
@@ -56,8 +56,7 @@
 
 static gboolean failsafe = FALSE;
 static gboolean show_version = FALSE;
-/* FIXME: turn this off closer to release */
-static gboolean debug = TRUE;
+static gboolean debug = FALSE;
 
 static void
 on_bus_name_lost (DBusGProxy *bus_proxy,
@@ -407,6 +406,15 @@ load_override_apps (GsmManager *manager,
         }
 }
 
+static void
+debug_ignore_handler (const char *log_domain,
+                      GLogLevelFlags log_level,
+                      const char *message,
+                      gpointer user_data)
+{
+        ;
+}
+
 static gboolean
 signal_cb (int      signo,
            gpointer data)
@@ -541,6 +549,10 @@ main (int argc, char **argv)
 
         gdm_log_init ();
         gdm_log_set_debug (debug);
+        if (!debug) {
+                g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,
+                                   debug_ignore_handler, NULL);
+        }
 
         signal_handler = gdm_signal_handler_new ();
         gdm_signal_handler_set_fatal_func (signal_handler, (GDestroyNotify)gtk_main_quit, NULL);
