[tracker/tracker-0.10] libtracker-sparql-backend: Improve debug message for direct connection
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-sparql-backend: Improve debug message for direct connection
- Date: Thu, 19 May 2011 15:42:26 +0000 (UTC)
commit dc8b6e6cd6e0724c5973b3617582b8fd6226271f
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]