[glib: 1/2] gmessages: Add missing trailing newline in fallback log handler




commit d01fb412801ddc55843f1e1642d0fef0afba441a
Author: John Lindgren <john jlindgren net>
Date:   Thu Oct 13 14:00:12 2022 +0100

    gmessages: Add missing trailing newline in fallback log handler
    
    This makes the fallback log handler match the behaviour of the default
    log handlers.
    
    Spotted as part of https://gitlab.gnome.org/GNOME/glib/-/issues/2753

 glib/gmessages.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index fb1297f8a8..e197f1707a 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -3159,6 +3159,7 @@ _g_log_fallback_handler (const gchar   *log_domain,
   write_string (stream, level_prefix);
   write_string (stream, ": ");
   write_string (stream, message);
+  write_string (stream, "\n");
 }
 
 static void


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