fix: Deadlock when acquiring the logger in LoggerManager.Put method
This commit is contained in:
@@ -43,7 +43,7 @@ func (m *LoggerManager) Put(name string, logger *logrus.Logger) {
|
||||
defer m.mu.Unlock()
|
||||
|
||||
if _, ok := m.loggers[name]; ok {
|
||||
m.Get(internal).Errorf("Logger with name '%s' already exists. Use PutForce to replace it.", name)
|
||||
m.loggers[internal].Errorf("Logger with name '%s' already exists. Use PutForce to replace it.", name)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user