[fractal/noprint] Use logging infrastructure for all messages



commit ec8ff34e2146e3a624da9bfb9c54c51772b203db
Author: Alexandre Franke <afranke gnome org>
Date:   Thu Mar 26 12:27:17 2020 +0100

    Use logging infrastructure for all messages

 fractal-gtk/src/widgets/roomlist.rs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/fractal-gtk/src/widgets/roomlist.rs b/fractal-gtk/src/widgets/roomlist.rs
index 2d118cec..0a10d8fb 100644
--- a/fractal-gtk/src/widgets/roomlist.rs
+++ b/fractal-gtk/src/widgets/roomlist.rs
@@ -9,6 +9,7 @@ use pango;
 use fractal_api::url::Url;
 use gtk;
 use gtk::prelude::*;
+use log::info;
 use std::collections::HashMap;
 
 use crate::globals;
@@ -652,10 +653,10 @@ impl RoomList {
         if r.membership.is_invited() {
             self.inv.get().add_room(r);
         } else if r.membership.match_joined_tag(RoomTag::Favourite) {
-            println!("We have fav rooms");
+            info!("We have fav rooms");
             self.fav.get().add_room(r);
         } else {
-            println!("We have non fav rooms");
+            info!("We have non fav rooms");
             self.rooms.get().add_room(r);
         }
         self.show_and_hide();


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