refactor: 重命名内部日志等级环境变量为 KNOT_LOG_LEVEL 以避免冲突

This commit is contained in:
KAAAsS 2023-10-20 16:30:30 +08:00
parent a4f5dd86a9
commit c1fc8f74c7
Signed by: KAAAsS
GPG Key ID: D22F53AF662411FE
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ def main [
| path expand
)
# 日志等级
$env.LOG_LEVEL = (
$env.KNOT_LOG_LEVEL = (
if ($verbose) { 0 }
else { if ($less) { 12 } else { 10 } }
)

View File

@ -17,8 +17,8 @@ export def main [
level: int,
s: string
] {
let log_level = if ('LOG_LEVEL' in $env) {
$env.LOG_LEVEL
let log_level = if ('KNOT_LOG_LEVEL' in $env) {
$env.KNOT_LOG_LEVEL
} else {
10
}