Logging: Fix server hangs when using log.WithSuffix (#45213)
Fixes a problem where server hangs if setting GF_DATABASE_LOG_QUERIES=true. Ref #44925
This commit is contained in:
@@ -206,7 +206,7 @@ func with(ctxLogger *ConcreteLogger, withFunc func(gokitlog.Logger, ...interface
|
||||
return ctxLogger
|
||||
}
|
||||
|
||||
ctxLogger.Swap(withFunc(&ctxLogger.SwapLogger, ctx...))
|
||||
ctxLogger.Swap(withFunc(ctxLogger.GetLogger(), ctx...))
|
||||
return ctxLogger
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user