From c6bd8e8c535c4518fc3f1d2496dc7a921fae0b1c Mon Sep 17 00:00:00 2001 From: joachimschmidt557 Date: Wed, 22 Jul 2020 12:46:00 +0200 Subject: [PATCH] Make the default log handler print a newline Closes #5907 --- lib/std/log.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/log.zig b/lib/std/log.zig index 28a3774626..11a8d1fed2 100644 --- a/lib/std/log.zig +++ b/lib/std/log.zig @@ -110,7 +110,7 @@ fn log( const held = std.debug.getStderrMutex().acquire(); defer held.release(); const stderr = std.io.getStdErr().writer(); - nosuspend stderr.print(format, args) catch return; + nosuspend stderr.print(format ++ "\n", args) catch return; } } }