log level changes
This commit is contained in:
@@ -42,7 +42,7 @@ func (l *Listener) Accept() (net.Conn, error) {
|
||||
continue
|
||||
}
|
||||
|
||||
l.log.Debug("accepted connection from %q", conn.RemoteAddr())
|
||||
l.log.Info("accepted connection from %q", conn.RemoteAddr())
|
||||
return conn, nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user