I am making a mistake and I don't quite see where. Consider the following integral $$ I\equiv\int_2^{\infty}\frac{e^{-x}-1}{x}\frac{\log\frac{1}{x}}{\log^2\frac{1}{x}+\frac{\pi^2}{4}}dx $$ I have plotted the integrand and the function $\frac{1}{x^{1.1}}$. My mathematica tells me that up to $x=10000$ the integrand above is smaller than $\frac{1}{x^{1.1}}$. It is well-known that $$ \int_2^{\infty}\frac{1}{x^{1.1}}dx $$ is convergent. Therefore, I expect my integral to be convergent.
Nonetheless, when I proceed with integration by parts I encounter infinities. This is how. Noticing
$$
\int\frac{\log\frac{1}{x}}{x(\log^2\frac{1}{x}+\frac{\pi^2}{4})}dx=-\frac{1}{2}\log(\pi^2+4\log^2\frac{1}{x})
$$
I can write
$$
I=(e^{-x}-1)\big(-\frac{1}{2}\log(\pi^2+4\log^2\frac{1}{x})\big)\bigg|_2^{\infty}-\frac{1}{2}\int_2^{\infty}e^{-x}\log(\pi^2+4\log^2\frac{1}{x})
$$
and we encounter an infinity in the first term above. Where did I go wrong?
EDIT: picture of the plot in Mathematica. The blue line is the integrand and the orange one $1/x^{1.1}$
Hint. Your integral is divergent because, as $x \to \infty$, $$ \frac{e^{-x}-1}{x}\frac{\log\frac{1}{x}}{\log^2\frac{1}{x}+\frac{\pi^2}{4}} \sim\frac{-1}{x}\frac{\log\frac{1}{x}}{\log^2\frac{1}{x}} \sim \frac{1}{x\log x} $$ and the latter integrand gives a divergent integral over $[2,\infty)$. One may recall that, as $M \to \infty$, $$ \int_2^M \frac{1}{x\log x}\:dx =\left[\frac{}{}\log\left(\log x \right) \right]_2^M =\log\left(\log M\right) -\log\left(\log 2 \right) \to \infty. $$