func CloneToNewIfPresent()

in internal/middleware/logger/logger.go [62:67]


func CloneToNewIfPresent(originCtx context.Context, newCtx context.Context) context.Context {
	if logger, ok := originCtx.Value(contextKey).(*logrus.Entry); ok {
		return context.WithValue(newCtx, contextKey, logger)
	}
	return newCtx
}