[balsa/cleanup-logging: 62/62] fix version and statistics command line output
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/cleanup-logging: 62/62] fix version and statistics command line output
- Date: Thu, 11 Jun 2020 18:13:00 +0000 (UTC)
commit 5780676a73555278d1d06482875c1f90da1903c0
Author: Albrecht Dreß <albrecht dress arcor de>
Date: Mon May 11 18:42:21 2020 +0200
fix version and statistics command line output
options '--version' and '--get-stats' print to stdout w/o decoration
(thanks to @peterb)
src/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index b90b55158..97de9d202 100644
--- a/src/main.c
+++ b/src/main.c
@@ -719,7 +719,7 @@ balsa_handle_local_options_cb(GApplication *application,
gpointer user_data)
{
if (g_variant_dict_contains(options, "version")) {
- g_message("Balsa email client %s", BALSA_VERSION);
+ g_print("Balsa email client %s\n", BALSA_VERSION);
return 0;
}
@@ -748,7 +748,7 @@ balsa_command_line_cb(GApplication * application,
balsa_app.outbox =
libbalsa_mailbox_new_from_config("mailbox-Outbox", FALSE);
balsa_get_stats(&unread, &unsent);
- g_debug("Unread: %ld Unsent: %ld", unread, unsent);
+ g_print("Unread: %ld Unsent: %ld\n", unread, unsent);
g_object_unref(balsa_app.outbox);
g_object_unref(balsa_app.inbox);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]