[folks] Register core debugging as global G_LOG_DOMAIN to reduce magic strings.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Register core debugging as global G_LOG_DOMAIN to reduce magic strings.
- Date: Thu, 6 Jan 2011 23:45:57 +0000 (UTC)
commit cfdd138a035c6aa13889660852e13b2fb458dbd5
Author: Travis Reitter <travis reitter collabora co uk>
Date: Thu Jan 6 15:39:20 2011 -0800
Register core debugging as global G_LOG_DOMAIN to reduce magic strings.
Fixes bgo#638609 - libfolks hard-codes backend names for debugging
folks/backend-store.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/folks/backend-store.vala b/folks/backend-store.vala
index cb40821..6f29edf 100644
--- a/folks/backend-store.vala
+++ b/folks/backend-store.vala
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]