Fix indexing in the test runner's log formatting

This commit is contained in:
Lewis Gaul 2022-05-23 23:48:18 +01:00 committed by Veikka Tuominen
parent 7cbd586ace
commit a08b0fa706

View File

@ -124,7 +124,10 @@ pub fn log(
log_err_count += 1;
}
if (@enumToInt(message_level) <= @enumToInt(std.testing.log_level)) {
std.debug.print("[{s}] ({s}): " ++ format ++ "\n", .{ @tagName(scope), @tagName(message_level) } ++ args);
std.debug.print(
"[" ++ @tagName(scope) ++ "] (" ++ @tagName(message_level) ++ "): " ++ format ++ "\n",
args,
);
}
}