[tracker/tracker-0.10: 25/32] tracker-store: Initialize D-Bus after initializing log
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10: 25/32] tracker-store: Initialize D-Bus after initializing log
- Date: Thu, 30 Jun 2011 08:53:06 +0000 (UTC)
commit eee21e6f671442b91ba18242ea451de98a5c5636
Author: JÃrg Billeter <j bitron ch>
Date: Wed Jun 22 12:35:25 2011 +0200
tracker-store: Initialize D-Bus after initializing log
This prevents log messages below configured verbosity.
src/tracker-store/tracker-main.vala | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/src/tracker-store/tracker-main.vala b/src/tracker-store/tracker-main.vala
index adf9c99..19f299e 100644
--- a/src/tracker-store/tracker-main.vala
+++ b/src/tracker-store/tracker-main.vala
@@ -194,18 +194,9 @@ License which can be viewed at:
var config = new Tracker.Config ();
var db_config = new Tracker.DBConfig ();
- ulong config_verbosity_id = config.notify["verbosity"].connect (config_verbosity_changed_cb);
-
/* Daemon command line arguments */
if (verbosity > -1) {
config.verbosity = verbosity;
- } else {
- /* Make sure we enable/disable the dbus client lookup */
- config_verbosity_changed_cb (config, null);
- }
-
- if (!Tracker.DBus.init ()) {
- return 1;
}
/* Initialize other subsystems */
@@ -219,6 +210,14 @@ License which can be viewed at:
return 1;
}
+ if (!Tracker.DBus.init ()) {
+ return 1;
+ }
+
+ /* Make sure we enable/disable the dbus client lookup */
+ config_verbosity_changed_cb (config, null);
+ ulong config_verbosity_id = config.notify["verbosity"].connect (config_verbosity_changed_cb);
+
DBManagerFlags flags = DBManagerFlags.REMOVE_CACHE;
if (force_reindex) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]