I tried integrating using the "dog bone", (wich idea is explained fairly well in this post: Integrating around a dog bone contour). I oriented the curve counter-clockwise.
Integrating along the dog bone (and computing the limit) gives me $-2I$, where $I$ is the integral i have to compute. Then computing the residues I find that the residues at $i$ and $-i$ are opposite, so they cancel each other out, while the one at infinity equals $-i$. Using the residue theorem, I find that $-2I=-2i\pi*(-i)$, but that is different from $(\sqrt2 - 1)*\pi$ which is what Wolfram Alpha gives me.
What did I do wrong?