2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-01-30 22:03:35 +00:00
nushell/crates/nu-std/tests/logger_tests
Antoine Stevan 39156930f5
fix std log ()
related to
- https://github.com/nushell/nushell/pull/12196

# Description
while i'm 100% okey with the original intent behind
https://github.com/nushell/nushell/pull/12196, i think the PR did
introduce two unintended things:
- extra parentheses that make the `log.nu` module look like Lisp lol
- a renaming of the `NU_LOG_LEVEL` environment variable to
`NU_log-level`. this breaks previous usage of `std log` and, as it's not
mentionned at all in the PR, i thought it was not intentional 😋

# User-Facing Changes
users can now control `std log` with `$env.NU_LOG_LEVEL`

# Tests + Formatting
the "log" tests have been fixed as well.

# After Submitting
2024-04-10 17:30:58 -04:00
..
commons.nu rename from date format to format date () 2023-08-04 06:06:00 +12:00
test_basic_commands.nu fix std log () 2024-04-10 17:30:58 -04:00
test_log_custom.nu fix std log () 2024-04-10 17:30:58 -04:00
test_log_format_flag.nu fix std log () 2024-04-10 17:30:58 -04:00
test_logger_env.nu fix std log () 2024-04-10 17:30:58 -04:00