mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 09:34:36 +03:00
allow unsetting a log level through subcommand and add admin page for settng log level
This commit is contained in:
@ -38,6 +38,10 @@ var Logfmt bool
|
||||
|
||||
type Level int
|
||||
|
||||
func (l Level) String() string {
|
||||
return LevelStrings[l]
|
||||
}
|
||||
|
||||
var LevelStrings = map[Level]string{
|
||||
LevelPrint: "print",
|
||||
LevelFatal: "fatal",
|
||||
|
Reference in New Issue
Block a user