[tracker] libtracker-sparql: Add debugging to know what SPARQL is used with direct-access
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-sparql: Add debugging to know what SPARQL is used with direct-access
- Date: Thu, 26 Aug 2010 10:12:20 +0000 (UTC)
commit b4eeaa8474028b45dfa471c817aff51065427b98
Author: Martyn Russell <martyn lanedo com>
Date: Thu Aug 26 11:02:35 2010 +0100
libtracker-sparql: Add debugging to know what SPARQL is used with direct-access
src/libtracker-sparql/tracker-plugin-loader.vala | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-plugin-loader.vala b/src/libtracker-sparql/tracker-plugin-loader.vala
index 72e1ea2..7a707db 100644
--- a/src/libtracker-sparql/tracker-plugin-loader.vala
+++ b/src/libtracker-sparql/tracker-plugin-loader.vala
@@ -46,6 +46,7 @@ class Tracker.Sparql.PluginLoader : Connection {
public override Cursor query (string sparql, Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null || direct != null) {
+ debug ("%s(): '%s'", Log.METHOD, sparql);
if (direct != null) {
return direct.query (sparql, cancellable);
} else {
@@ -55,6 +56,7 @@ class Tracker.Sparql.PluginLoader : Connection {
public async override Cursor query_async (string sparql, Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null || direct != null) {
+ debug ("%s(): '%s'", Log.METHOD, sparql);
if (direct != null) {
return yield direct.query_async (sparql, cancellable);
} else {
@@ -64,41 +66,51 @@ class Tracker.Sparql.PluginLoader : Connection {
public override void update (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null) {
+ debug ("%s(priority:%d): '%s'", Log.METHOD, priority, sparql);
bus.update (sparql, priority, cancellable);
}
public override GLib.Variant? update_blank (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null) {
+ debug ("%s(priority:%d): '%s'", Log.METHOD, priority, sparql);
return bus.update_blank (sparql, priority, cancellable);
}
public async override void update_async (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null) {
+ debug ("%s(priority:%d): '%s'", Log.METHOD, priority, sparql);
yield bus.update_async (sparql, priority, cancellable);
}
public async override GLib.Variant? update_blank_async (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null) {
+ debug ("%s(priority:%d): '%s'", Log.METHOD, priority, sparql);
return yield bus.update_blank_async (sparql, priority, cancellable);
}
public override void load (File file, Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null) {
+ var uri = file.get_uri ();
+ debug ("%s(): '%s'", Log.METHOD, uri);
bus.load (file, cancellable);
}
public async override void load_async (File file, Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null) {
+ var uri = file.get_uri ();
+ debug ("%s(): '%s'", Log.METHOD, uri);
yield bus.load_async (file, cancellable);
}
public override Cursor? statistics (Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null) {
+ debug ("%s()", Log.METHOD);
return bus.statistics (cancellable);
}
public async override Cursor? statistics_async (Cancellable? cancellable = null) throws Sparql.Error, IOError
requires (bus != null) {
+ debug ("%s()", Log.METHOD);
return yield bus.statistics_async (cancellable);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]