[libchamplain] Use proper debug messages



commit 8145b6f5f47c23417cb079cca35dd2519296c7e5
Author: Simon Wenner <simon wenner ch>
Date:   Sun Jul 12 23:22:45 2009 +0200

    Use proper debug messages

 champlain/champlain-network-map-data-source.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/champlain/champlain-network-map-data-source.c b/champlain/champlain-network-map-data-source.c
index 1d0a4ab..cbfbef4 100644
--- a/champlain/champlain-network-map-data-source.c
+++ b/champlain/champlain-network-map-data-source.c
@@ -137,13 +137,15 @@ load_map_data_cb (SoupSession *session, SoupMessage *msg,
       (ChamplainNetworkMapDataSource *) user_data;
   ChamplainNetworkMapDataSourcePrivate *priv = GET_PRIVATE(self);
 
-  g_message ("Data received");
   // TODO: error handling, error tile?
   MemphisMap *map = memphis_map_new ();
+  memphis_map_set_debug_level (map, 0);
   memphis_map_load_from_data (map,
       msg->response_body->data,
       msg->response_body->length);
 
+  DEBUG ("BBox data received");
+
   priv->map = map;
 
   g_signal_emit_by_name (CHAMPLAIN_MAP_DATA_SOURCE (self),
@@ -161,7 +163,7 @@ champlain_network_map_data_source_load_map_data (
 {
   g_return_if_fail (CHAMPLAIN_IS_NETWORK_MAP_DATA_SOURCE (self));
 
-  // TODO: check bbox size
+  // TODO: check valid bbox size
 
   SoupMessage *msg;
   SoupSession *sess = soup_session_sync_new ();
@@ -172,7 +174,7 @@ champlain_network_map_data_source_load_map_data (
   msg = soup_message_new ("GET", url);
   g_free (url);
 
-  g_message ("REQ bbox data");
+  DEBUG ("Request BBox data");
   soup_session_queue_message (sess, msg, load_map_data_cb, self);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]