summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2014-02-25 12:06:59 +0000
committerMartyn Russell <martyn@lanedo.com>2014-06-23 05:31:44 +0100
commita3b64fe256ad5f1761923471b2335fb945e710de (patch)
treecfe8cd314dd3e6e2e4a3a3cf20d270fc17e6a72b
parent1ba4e37af21ecfd1beefbe33eb95aef846d4f408 (diff)
downloadlibmediaart-a3b64fe256ad5f1761923471b2335fb945e710de.tar.gz
storage: Make g_message() calls g_debug() calls, output is unnecessary
-rw-r--r--libmediaart/storage.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/libmediaart/storage.c b/libmediaart/storage.c
index feb22f6..93cb533 100644
--- a/libmediaart/storage.c
+++ b/libmediaart/storage.c
@@ -140,8 +140,6 @@ storage_init (Storage *storage)
{
StoragePrivate *priv;
- g_message ("Initializing Storage...");
-
priv = STORAGE_GET_PRIVATE (storage);
priv->mounts = g_node_new (NULL);
@@ -163,8 +161,6 @@ storage_init (Storage *storage)
g_signal_connect_object (priv->volume_monitor, "mount-added",
G_CALLBACK (mount_added_cb), storage, 0);
- g_message ("Mount monitors set up for to watch for added, removed and pre-unmounts...");
-
/* Get all mounts and set them up */
if (!mounts_setup (storage)) {
return;
@@ -702,7 +698,7 @@ mounts_setup (Storage *storage)
mounts = g_volume_monitor_get_mounts (priv->volume_monitor);
if (!mounts) {
- g_message ("No mounts found to iterate");
+ g_debug ("No mounts found to iterate");
return TRUE;
}
@@ -752,19 +748,19 @@ mount_remove (Storage *storage,
if (node) {
info = node->data;
- g_message ("Mount:'%s' with UUID:'%s' now unmounted from:'%s'",
- name,
- info->uuid,
- mount_point);
+ g_debug ("Mount:'%s' with UUID:'%s' now unmounted from:'%s'",
+ name,
+ info->uuid,
+ mount_point);
g_signal_emit (storage, signals[MOUNT_POINT_REMOVED], 0, info->uuid, mount_point, NULL);
g_hash_table_remove (priv->mounts_by_uuid, info->uuid);
mount_node_free (node);
} else {
- g_message ("Mount:'%s' now unmounted from:'%s' (was not tracked)",
- name,
- mount_point);
+ g_debug ("Mount:'%s' now unmounted from:'%s' (was not tracked)",
+ name,
+ mount_point);
}
g_free (name);