I want to compute an integral like $\int_0^{+\infty} \ln(1+x)e^{-x}\,\mathrm dx$. Then denote $\mu = 1-e^{-x}$, so $x=-\ln(1-\mu)$. Substitute this into the integral, we get
$$\int_0^1 \ln(1-\ln(1-\mu))(1-\mu)\,\mathrm d(-\ln(1-\mu)) = \int_0^1 \ln(1-\ln(1-\mu))\,\mathrm d\mu$$
However, $\ln(1-\ln(1-\mu))$ goes to infinity if $\mu$ goes to 1, which makes the latter integral uncomputable. But the original integral has no such problem. Is there any error in my substitution?