From 6f6e4b97cba49469440fc0aefafb71623a3eabb9 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 15 Mar 2019 20:56:19 +0100 Subject: Use glib log functions --- main/src/main.vala | 2 +- main/src/ui/conversation_summary/content_item_widget_factory.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'main') diff --git a/main/src/main.vala b/main/src/main.vala index 46b3affd..6274dcdd 100644 --- a/main/src/main.vala +++ b/main/src/main.vala @@ -22,7 +22,7 @@ void main(string[] args) { app.run(args); loader.shutdown(); } catch (Error e) { - print(@"Fatal error: $(e.message)\n"); + warning(@"Fatal error: $(e.message)"); } } diff --git a/main/src/ui/conversation_summary/content_item_widget_factory.vala b/main/src/ui/conversation_summary/content_item_widget_factory.vala index 0bd763ec..b784c91a 100644 --- a/main/src/ui/conversation_summary/content_item_widget_factory.vala +++ b/main/src/ui/conversation_summary/content_item_widget_factory.vala @@ -166,7 +166,7 @@ public class FileItemWidgetGenerator : WidgetGenerator, Object { try{ AppInfo.launch_default_for_uri(file_transfer.get_file().get_uri(), null); } catch (Error err) { - print("Tried to open file://" + file_transfer.get_file().get_path() + " " + err.message + "\n"); + info("Could not to open file://%s: %s", file_transfer.get_file().get_path(), err.message); } }); -- cgit v1.2.3-70-g09d2