[tracker/libtracker-sparql: 1/5] libtracker-sparql-backend: Improve debug message for direct connection



commit 81156d401e44fee40ae8f87a0693d594a60adbad
Author: Jürg Billeter <j bitron ch>
Date:   Thu May 19 09:05:42 2011 +0200

    libtracker-sparql-backend: Improve debug message for direct connection

 src/libtracker-direct/tracker-direct.vala          |    7 +++++--
 src/libtracker-sparql-backend/tracker-backend.vala |    2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-direct/tracker-direct.vala b/src/libtracker-direct/tracker-direct.vala
index 7ab92b2..49808e2 100644
--- a/src/libtracker-direct/tracker-direct.vala
+++ b/src/libtracker-direct/tracker-direct.vala
@@ -21,8 +21,11 @@ public class Tracker.Direct.Connection : Tracker.Sparql.Connection {
 	// only single connection is currently supported per process
 	static bool initialized;
 
-	public Connection () throws Sparql.Error, IOError, DBusError
-	requires (!initialized) {
+	public Connection () throws Sparql.Error, IOError, DBusError {
+		if (initialized) {
+			
+		}
+
 		uint select_cache_size = 100;
 		string env_cache_size = Environment.get_variable ("TRACKER_SPARQL_CACHE_SIZE");
 
diff --git a/src/libtracker-sparql-backend/tracker-backend.vala b/src/libtracker-sparql-backend/tracker-backend.vala
index 908bdcc..b1190a8 100644
--- a/src/libtracker-sparql-backend/tracker-backend.vala
+++ b/src/libtracker-sparql-backend/tracker-backend.vala
@@ -164,7 +164,7 @@ class Tracker.Sparql.Backend : Connection {
 			try {
 				direct = new Tracker.Direct.Connection ();
 			} catch (Error e) {
-				debug ("Unable to initialize direct backend");
+				debug ("Unable to initialize direct backend: " + e.message);
 			}
 
 			bus = new Tracker.Bus.Connection ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]