[tracker/sam/tracker-2.3-developer-experience: 38/45] tests: Enable logging in test data-sparql
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/tracker-2.3-developer-experience: 38/45] tests: Enable logging in test data-sparql
- Date: Wed, 2 Oct 2019 11:56:48 +0000 (UTC)
commit caf8e0beadcfd86f051cd0c99fa8a64444200be7
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Sep 22 19:27:23 2019 +0200
tests: Enable logging in test data-sparql
This may help with debugging
https://gitlab.gnome.org/GNOME/tracker/issues/145.
src/libtracker-common/tracker-log.c | 4 +++-
tests/libtracker-data/tracker-sparql-test.c | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-common/tracker-log.c b/src/libtracker-common/tracker-log.c
index f3228516e..094b71789 100644
--- a/src/libtracker-common/tracker-log.c
+++ b/src/libtracker-common/tracker-log.c
@@ -241,7 +241,9 @@ tracker_log_init (gint this_verbosity,
g_free (filename);
}
} else {
- *used_filename = NULL;
+ if (used_filename) {
+ *used_filename = NULL;
+ }
}
verbosity = CLAMP (this_verbosity, 0, 3);
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 2a10d4399..dcedc4273 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -421,6 +421,8 @@ main (int argc, char **argv)
setlocale (LC_COLLATE, "en_US.utf8");
+ tracker_log_init (0, NULL);
+
current_dir = g_get_current_dir ();
tests_data_dir = g_build_filename (current_dir, "sparql-test-data-XXXXXX", NULL);
g_free (current_dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]