If I have an integral $\int_C \frac{1}{z} dz$ where $C$ is the left half of the circle from $i$ to $-i$, then I can choose the branch cut to be the positive axis, and have the antiderivative to be log(z). Then using the antiderivative, I can evaluate the integral:
$\int_C \frac{1}{z} dz = log(-i) - log(i)$
However, if I let $0 \leq arg(z) < 2\pi$, my integral will evaluate to $\frac{3\pi}{2} - \frac{\pi}{2} = \pi$. If I choose $-\pi \leq arg(z) < \pi$, then my integral will evaluate to $\frac{-\pi}{2} - \frac{\pi}{2} = -\pi$. I feel like I should get the same value. What am I doing wrong here.