From 37a01073b512c81a3036c8cf29b9bd97c59770fa Mon Sep 17 00:00:00 2001 From: ostiwe Date: Mon, 11 Aug 2025 19:03:50 +0300 Subject: [PATCH] fix: Deadlock when acquiring the logger in LoggerManager.Put method --- modules/log/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/log/manager.go b/modules/log/manager.go index 66e8ed2..b51d5d3 100644 --- a/modules/log/manager.go +++ b/modules/log/manager.go @@ -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 }