WIP v0.5.0
This commit is contained in:
15
tgapi/utils.go
Normal file
15
tgapi/utils.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package tgapi
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"git.nix13.pw/scuroneko/slog"
|
||||
)
|
||||
|
||||
func GetLoggerLevel() slog.LogLevel {
|
||||
level := slog.FATAL
|
||||
if os.Getenv("DEBUG") == "true" {
|
||||
level = slog.DEBUG
|
||||
}
|
||||
return level
|
||||
}
|
||||
Reference in New Issue
Block a user