change LOG_FORMAT to NU_LOG_FORMAT in nu-std library (#10254)

this closes #10248 

@fdncred pointed out the problem and he was correct 😄 

I went ahead and made the simple change and the
https://github.com/influxdata/influxdb_iox binary
works like a charm...

@amtoine hopefully there are no issues with this change

I believe its a good one as other rust binaries might take advantage of
this common
environment variable as well...
This commit is contained in:
Michael Angerman
2023-09-06 10:17:14 -07:00
committed by GitHub
parent f433b3102f
commit 6a374182a7
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ export-env {
"DEBUG": "D"
}
$env.LOG_FORMAT = $"%ANSI_START%%DATE%|%LEVEL%|(ansi u)%MSG%%ANSI_STOP%"
$env.NU_LOG_FORMAT = $"%ANSI_START%%DATE%|%LEVEL%|(ansi u)%MSG%%ANSI_STOP%"
}
def log-types [] {
@ -149,7 +149,7 @@ def handle-log [
short: bool
] {
let log_format = if ($format_string | is-empty) {
$env.LOG_FORMAT
$env.NU_LOG_FORMAT
} else {
$format_string
}