From afdb68dc7175b1c6b5f4ca8f6a20b55036cb2375 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Wed, 4 Oct 2023 13:30:49 -0500 Subject: [PATCH] remove underline from std NU_LOG_FORMAT (#10604) # Description This PR removes the underline from the log format. It's been messing things up for me since there is no ansi reset in the log format and therefore everything after it is underlined. This PR should end things like this. ![image](https://github.com/nushell/nushell/assets/343840/17e6dc87-11ba-4395-aac3-f70872b9182a) # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-std/std/log.nu | 2 +- crates/nu-std/tests/logger_tests/test_logger_env.nu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-std/std/log.nu b/crates/nu-std/std/log.nu index 1e2d222144..5ab2735280 100644 --- a/crates/nu-std/std/log.nu +++ b/crates/nu-std/std/log.nu @@ -31,7 +31,7 @@ export-env { "DEBUG": "D" } - $env.NU_LOG_FORMAT = $"%ANSI_START%%DATE%|%LEVEL%|(ansi u)%MSG%%ANSI_STOP%" + $env.NU_LOG_FORMAT = $"%ANSI_START%%DATE%|%LEVEL%|%MSG%%ANSI_STOP%" $env.NU_LOG_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S%.3f" } diff --git a/crates/nu-std/tests/logger_tests/test_logger_env.nu b/crates/nu-std/tests/logger_tests/test_logger_env.nu index 642f65d347..a73724d322 100644 --- a/crates/nu-std/tests/logger_tests/test_logger_env.nu +++ b/crates/nu-std/tests/logger_tests/test_logger_env.nu @@ -38,5 +38,5 @@ def env_log_short_prefix [] { #[test] def env_log_format [] { - assert equal $env.NU_LOG_FORMAT $"%ANSI_START%%DATE%|%LEVEL%|(ansi u)%MSG%%ANSI_STOP%" + assert equal $env.NU_LOG_FORMAT $"%ANSI_START%%DATE%|%LEVEL%|%MSG%%ANSI_STOP%" }