Error using cvx/log Disciplined convex programming error: Illegal operation: log( {convex} )

You have violated CVX’s rules, because the argument of log must be concave. Moreover, the objective function is neither convex nor concave, as evidenced by log(1+x^2/y) being neither convex nor concave in x and y.