[balsa/cleanup-logging] fix version and statistics command line output



commit f7fe505ae3126587c11ff1913492f972877741b3
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]