Index: gok/gok-spy.c
===================================================================
RCS file: /cvs/gnome/gok/gok/gok-spy.c,v
retrieving revision 1.114
diff -u -r1.114 gok-spy.c
--- gok/gok-spy.c	4 Feb 2004 16:03:21 -0000	1.114
+++ gok/gok-spy.c	4 Feb 2004 19:12:54 -0000
@@ -142,6 +142,7 @@
  */
 void gok_spy_accessible_ref(Accessible* accessible)
 {
+#if defined(ENABLE_LOGGING_NORMAL)
 	char *s;
 
 	gok_log_enter ();
@@ -149,7 +150,10 @@
 	if (accessible != NULL)
 	{
 		explicitrefs++;
+#endif
+		
 		Accessible_ref (accessible);
+
 #if defined(ENABLE_LOGGING_NORMAL)
 		s = Accessible_getName (accessible);
 		if (s == NULL)
@@ -161,7 +165,6 @@
 			gok_log ("%#x %s", accessible, s);
 			SPI_freeString (s);
 		}
-#endif
 	}
 	else
 	{
@@ -169,10 +172,12 @@
 	}
 
 	gok_log_leave ();
+#endif
 }
 
 void gok_spy_accessible_implicit_ref(Accessible* accessible)
 {
+#if defined(ENABLE_LOGGING_NORMAL)
 	char *s;
 
 	gok_log_enter ();
@@ -180,7 +185,6 @@
 	if (accessible != NULL)
 	{
 		implicitrefs++;
-#if defined(ENABLE_LOGGING_NORMAL)
 		s = Accessible_getName (accessible);
 		if (s == NULL)
 		{
@@ -191,7 +195,6 @@
 			gok_log ("%#x %s", accessible, s);
 			SPI_freeString (s);
 		}
-#endif
 	}
 	else
 	{
@@ -199,17 +202,18 @@
 	}
 
 	gok_log_leave ();
+#endif
 }
 
 void gok_spy_accessible_unref(Accessible* accessible)
 {
+#if defined(ENABLE_LOGGING_NORMAL)
 	char *s;
 
 	gok_log_enter ();
 
 	if (accessible != NULL)
 	{
-#if defined(ENABLE_LOGGING_NORMAL)
 		s = Accessible_getName (accessible);
 		if (s == NULL)
 		{
@@ -220,9 +224,12 @@
 			gok_log ("%#x %s", accessible, s);
 			SPI_freeString (s);
 		}
-#endif
 		explicitunrefs++;
+#endif
+		
 		Accessible_unref (accessible);
+
+#if defined(ENABLE_LOGGING_NORMAL)
 	}
 	else
 	{
@@ -230,6 +237,7 @@
 	}
 
 	gok_log_leave ();
+#endif
 }
 
 gboolean gok_spy_accessible_is_okay(Accessible* accessible)
