mirror of
https://github.com/kovetskiy/mark.git
synced 2026-03-14 14:17:37 +08:00
fix: remove no-op log.GetLevel() call in SetLogLevel
The return value was unused and had no effect on logger state, misleading readers into thinking it was needed for initialization. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d68f8c3bb3
commit
5e1d40d910
@ -116,7 +116,6 @@ func SetLogLevel(cmd *cli.Command) error {
|
|||||||
default:
|
default:
|
||||||
return fmt.Errorf("unknown log level: %s", logLevel)
|
return fmt.Errorf("unknown log level: %s", logLevel)
|
||||||
}
|
}
|
||||||
log.GetLevel()
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user