[tracker/wip/carlosg/junit: 11/15] libtracker-data: Demote g_info() to g_debug()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/junit: 11/15] libtracker-data: Demote g_info() to g_debug()
- Date: Sat, 12 Dec 2020 19:25:28 +0000 (UTC)
commit 51d19c785ce446e77eb79f6aa47b88b817909960
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Dec 10 17:20:48 2020 +0100
libtracker-data: Demote g_info() to g_debug()
The latter behaves fine wrt testing infrastructure and TAP output.
src/libtracker-data/tracker-data-manager.c | 8 ++++----
src/libtracker-data/tracker-db-manager.c | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 4a2bee58d..32d0cc4eb 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -4057,7 +4057,7 @@ tracker_data_manager_initable_init (GInitable *initable,
return FALSE;
}
- g_info ("Applying ontologies from %s", g_file_peek_path (manager->ontology_location));
+ g_debug ("Applying ontologies from %s", g_file_peek_path (manager->ontology_location));
sorted = get_ontologies (manager, manager->ontology_location, &internal_error);
if (internal_error) {
@@ -4153,7 +4153,7 @@ tracker_data_manager_initable_init (GInitable *initable,
if (read_only) {
/* Not all ontology information is saved in the gvdb cache, so
* it can only be used for read-only connections. */
- g_info ("Loading cached ontologies from gvdb cache");
+ g_debug ("Loading cached ontologies from gvdb cache");
load_ontologies_gvdb (manager, &gvdb_error);
if (gvdb_error) {
@@ -4165,7 +4165,7 @@ tracker_data_manager_initable_init (GInitable *initable,
}
if (load_from_db) {
- g_info ("Loading ontologies from database.");
+ g_debug ("Loading ontologies from database.");
db_get_static_data (iface, manager, &internal_error);
if (internal_error) {
@@ -4196,7 +4196,7 @@ tracker_data_manager_initable_init (GInitable *initable,
seen_classes = g_ptr_array_new ();
seen_properties = g_ptr_array_new ();
- g_info ("Applying ontologies from %s to existing database", g_file_peek_path
(manager->ontology_location));
+ g_debug ("Applying ontologies from %s to existing database", g_file_peek_path
(manager->ontology_location));
/* Get all the ontology files from ontology_location */
ontos = get_ontologies (manager, manager->ontology_location, &internal_error);
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 9f4e89101..c9523d480 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -203,8 +203,8 @@ db_set_params (TrackerDBInterface *iface,
"PRAGMA \"%s\".journal_mode = WAL", database);
if (internal_error) {
- g_info ("Can't set journal mode to WAL: '%s'",
- internal_error->message);
+ g_debug ("Can't set journal mode to WAL: '%s'",
+ internal_error->message);
g_propagate_error (error, internal_error);
} else {
TrackerDBCursor *cursor;
@@ -392,7 +392,7 @@ tracker_db_manager_locale_changed (TrackerDBManager *db_manager,
current_locale);
changed = TRUE;
} else {
- g_info ("Current and DB locales match: '%s'", db_locale);
+ g_debug ("Current and DB locales match: '%s'", db_locale);
changed = FALSE;
}
@@ -409,7 +409,7 @@ tracker_db_manager_set_current_locale (TrackerDBManager *db_manager)
/* Get current collation locale */
current_locale = tracker_locale_get (TRACKER_LOCALE_COLLATE);
- g_info ("Saving DB locale as: '%s'", current_locale);
+ g_debug ("Saving DB locale as: '%s'", current_locale);
db_set_locale (db_manager, current_locale);
g_free (current_locale);
}
@@ -663,7 +663,7 @@ tracker_db_manager_new (TrackerDBManagerFlags flags,
/* Size is 1 when using echo > file.db, none of our databases
* are only one byte in size even initually. */
if (size <= 1) {
- g_info ("Database is corrupt: size is 1 byte or less.");
+ g_debug ("Database is corrupt: size is 1 byte or less.");
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]