[tracker/rss-enclosures] libtracker-common: Make sure libtracker-sparql inherits verbosity
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-common: Make sure libtracker-sparql inherits verbosity
- Date: Wed, 24 Nov 2010 01:10:46 +0000 (UTC)
commit e61c830886dc5cef20444d8279ad3f101b04b0b3
Author: Jürg Billeter <j bitron ch>
Date: Fri Aug 13 15:16:54 2010 +0200
libtracker-common: Make sure libtracker-sparql inherits verbosity
src/libtracker-common/tracker-log.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-log.c b/src/libtracker-common/tracker-log.c
index ad71d1b..880363f 100644
--- a/src/libtracker-common/tracker-log.c
+++ b/src/libtracker-common/tracker-log.c
@@ -153,6 +153,14 @@ tracker_log_init (gint this_verbosity,
env_verbosity = g_getenv ("TRACKER_VERBOSITY");
if (env_verbosity != NULL) {
this_verbosity = atoi (env_verbosity);
+ } else {
+ gchar *verbosity_string;
+
+ /* make sure libtracker-sparql uses the same verbosity setting */
+
+ verbosity_string = g_strdup_printf ("%d", this_verbosity);
+ g_setenv ("TRACKER_VERBOSITY", verbosity_string, FALSE);
+ g_free (verbosity_string);
}
basename = g_strdup_printf ("%s.log", g_get_application_name ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]