tracker r2826 - in trunk: . src/libtracker-common
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2826 - in trunk: . src/libtracker-common
- Date: Fri, 23 Jan 2009 12:31:53 +0000 (UTC)
Author: pvanhoof
Date: Fri Jan 23 12:31:52 2009
New Revision: 2826
URL: http://svn.gnome.org/viewvc/tracker?rev=2826&view=rev
Log:
2009-01-23 Philip Van Hoof <philip codeminded be>
* src/libtracker-common/tracker-thumbnailer.c: Don't print debugging
messages when not compiled with -DDEBUG
Modified:
trunk/ChangeLog
trunk/src/libtracker-common/tracker-thumbnailer.c
Modified: trunk/src/libtracker-common/tracker-thumbnailer.c
==============================================================================
--- trunk/src/libtracker-common/tracker-thumbnailer.c (original)
+++ trunk/src/libtracker-common/tracker-thumbnailer.c Fri Jan 23 12:31:52 2009
@@ -31,6 +31,12 @@
#include "tracker-dbus.h"
#include "tracker-thumbnailer.h"
+#ifdef DEBUG
+#define debug g_message
+#else
+#define debug(...)
+#endif
+
#define THUMBNAILER_SERVICE "org.freedesktop.thumbnailer"
#define THUMBNAILER_PATH "/org/freedesktop/thumbnailer/Generic"
#define THUMBNAILER_INTERFACE "org.freedesktop.thumbnailer.Generic"
@@ -137,7 +143,7 @@
private->service_is_enabled = tracker_config_get_enable_thumbnails (private->config);
- g_message ("Thumbnailer service %s",
+ debug ("Thumbnailer service %s",
private->service_is_enabled ? "enabled" : "disabled");
}
@@ -166,8 +172,8 @@
return;
}
- g_message ("Received response from thumbnailer, request ID:%d",
- GPOINTER_TO_UINT (user_data));
+ debug ("Received response from thumbnailer, request ID:%d",
+ GPOINTER_TO_UINT (user_data));
}
static gboolean
@@ -184,7 +190,7 @@
private->uris[private->count] = NULL;
private->mime_types[private->count] = NULL;
- g_message ("Sending request to thumbnailer to queue %d files, request ID:%d...",
+ debug ("Sending request to thumbnailer to queue %d files, request ID:%d...",
private->count,
private->request_id);
@@ -234,7 +240,7 @@
private,
private_free);
- g_message ("Thumbnailer connections being set up...");
+ debug ("Thumbnailer connections being set up...");
connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
@@ -276,7 +282,7 @@
* priority now, though (therefore, is this a TODO).
*/
- g_message ("Thumbnailer supported mime types requested...");
+ debug ("Thumbnailer supported mime types requested...");
dbus_g_proxy_call (private->manager_proxy,
"GetSupported", &error,
@@ -285,12 +291,12 @@
G_TYPE_INVALID);
if (error) {
- g_message ("Thumbnailer service did not return supported mime types, %s",
+ debug ("Thumbnailer service did not return supported mime types, %s",
error->message);
g_error_free (error);
} else if (mime_types) {
- g_message ("Thumbnailer supports %d mime types",
+ debug ("Thumbnailer supports %d mime types",
g_strv_length (mime_types));
private->supported_mime_types = mime_types;
@@ -336,7 +342,7 @@
private->request_id++;
- g_message ("Requesting thumbnailer moves URI from:'%s' to:'%s', request_id:%d...",
+ debug ("Requesting thumbnailer moves URI from:'%s' to:'%s', request_id:%d...",
from_uri,
to_uri,
private->request_id);
@@ -402,7 +408,7 @@
else
uris[0] = g_strdup (uri);
- g_message ("Requesting thumbnailer removes URI:'%s', request_id:%d...",
+ debug ("Requesting thumbnailer removes URI:'%s', request_id:%d...",
uri,
private->request_id);
@@ -435,7 +441,7 @@
private->request_id++;
- g_message ("Requesting thumbnailer cleanup URI:'%s', request_id:%d...",
+ debug ("Requesting thumbnailer cleanup URI:'%s', request_id:%d...",
uri_prefix,
private->request_id);
@@ -475,7 +481,7 @@
private->request_id++;
- g_message ("Requesting thumbnailer to get thumbnail for URI:'%s', request_id:%d...",
+ debug ("Requesting thumbnailer to get thumbnail for URI:'%s', request_id:%d...",
uri,
private->request_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]