log level changes

This commit is contained in:
Aine
2023-01-04 11:22:50 +02:00
parent f54b87c1f7
commit 0559978fa2
5 changed files with 8 additions and 8 deletions

View File

@@ -80,8 +80,8 @@ func NewManager(cfg *Config) *Manager {
if len(cfg.Domains) == 1 {
s.Domain = cfg.Domains[0]
}
if log.GetLevel() == "DEBUG" || log.GetLevel() == "TRACE" {
s.Debug = loggerWriter{func(s string) { log.Debug(s) }}
if log.GetLevel() == "INFO" || log.GetLevel() == "DEBUG" || log.GetLevel() == "TRACE" {
s.Debug = loggerWriter{func(s string) { log.Info(s) }}
}
m := &Manager{