Register core debugging as global G_LOG_DOMAIN to reduce magic strings.
authorTravis Reitter <travis.reitter@collabora.co.uk>
Thu, 6 Jan 2011 23:39:20 +0000 (15:39 -0800)
committerTravis Reitter <travis.reitter@collabora.co.uk>
Thu, 6 Jan 2011 23:43:38 +0000 (15:43 -0800)
Fixes bgo#638609 - libfolks hard-codes backend names for debugging

folks/backend-store.vala

index cb40821..6f29edf 100644 (file)
@@ -25,6 +25,8 @@
 using Gee;
 using GLib;
 
+extern const string G_LOG_DOMAIN;
+
 /**
  * Responsible for backend loading.
  *
@@ -123,7 +125,7 @@ public class Folks.BackendStore : Object {
       this._debug = Debug.dup (Environment.get_variable ("FOLKS_DEBUG"));
 
       /* register the core debug messages */
-      this._debug._register_domain ("folks");
+      this._debug._register_domain (G_LOG_DOMAIN);
 
       this.modules = new HashMap<string,unowned Module> (str_hash, str_equal);
       this._backend_hash = new HashMap<string,Backend> (str_hash, str_equal);