Given the function, $$ f(x)= \frac{1}{e^x-1} \prod_{n=1}^{\infty} \frac{x^n}{n!} $$
Then applying the log,
$$ \ln(f(x)) = \frac{1}{e^x-1} \sum_{n=1}^{\infty} \frac{x^n}{n!} = \frac{e^x-1}{e^x-1} = 1 $$
$$ \rightarrow \quad f(x) = e \quad \rightarrow \quad \prod_{n=1}^{\infty}\frac{x^n}{n!} =e(e^x-1) $$
$$ $$
For $x=1$ we get,
$$ \prod_{n=1}^{\infty} \frac{1}{n!} = \frac{1}{1!} \cdot \frac{1}{2!} \cdot \frac{1}{3!} \cdot ...\frac{1}{n!} \rightarrow 0$$
Which means, $$ e(e-1)=0 \quad \rightarrow \quad e^2=e$$
What have I done wrong?
You cannot take the natural log of $0$.