Find the error in following reason
\begin{align*} (-z)^2=z^2 &\implies \log(-z)^2=\log(z)^2\\ &\implies2\log(-z)=2\log(z)\\ &\implies \log(-z)=\log(z) \end{align*}
I think the error is $2\log(-z)=2\log(z)$ because for $z=1$, $2\log(1)=0$, but $2 \log(-1)$ is undefined.
What's bugging me is this problem has a star on it, which mean it's a challenging problem. I don't think it is that easy. So I wonder if anyone could check if I missed or make mistake somewhere.