aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-03-15 20:56:19 +0100
committerfiaxh <git@lightrise.org>2019-03-15 22:01:34 +0100
commit6f6e4b97cba49469440fc0aefafb71623a3eabb9 (patch)
treee5a11627d5d34a9eac9ad50ee0822a05fe7b91bf /main
parenta49326979140750cc22cf483182274638568e43d (diff)
downloaddino-6f6e4b97cba49469440fc0aefafb71623a3eabb9.tar.gz
dino-6f6e4b97cba49469440fc0aefafb71623a3eabb9.zip
Use glib log functions
Diffstat (limited to 'main')
-rw-r--r--main/src/main.vala2
-rw-r--r--main/src/ui/conversation_summary/content_item_widget_factory.vala2
2 files changed, 2 insertions, 2 deletions
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);
}
});