From 7a945848de02958b7f61cb8bc58943c2f0427e64 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Mon, 8 May 2023 19:29:18 +0200 Subject: [PATCH] swap the date and the log level in the `std log` format (#9138) related to https://github.com/nushell/nushell/issues/8588#issuecomment-1538624565 # Description this PR switches the date and log level in `std log` :+1: # User-Facing Changes the date and log level are now swapped in the `std log` format. # Tests + Formatting - :green_circle: `toolkit fmt` - :green_circle: `toolkit clippy` - :black_circle: `toolkit test` - :black_circle: `toolkit test stdlib` # After Submitting ``` $nothing ``` --- crates/nu-std/lib/log.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-std/lib/log.nu b/crates/nu-std/lib/log.nu index c07b14fa06..db2363706f 100644 --- a/crates/nu-std/lib/log.nu +++ b/crates/nu-std/lib/log.nu @@ -140,7 +140,7 @@ def log-formatted [ prefix: string, message: string ] { - print --stderr $"($color)($prefix)|(now)|(ansi u)($message)(ansi reset)" + print --stderr $"($color)(now)|($prefix)|(ansi u)($message)(ansi reset)" } # Log a critical message