fix: Deadlock when acquiring the logger in LoggerManager.Put method

This commit is contained in:
2025-08-11 19:03:50 +03:00
parent 40a313f93b
commit 37a01073b5

View File

@@ -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
}