Let $w$ be a complex number such that $|w| < 1$. Evaluate the integral
$$\int_0^{2\pi} \log |1-w e^{i\theta}| \, d\theta.$$
I am having a hard time moving forward on this question.
I tried substituting $z=e^{i\theta}$, and to get $$\oint_\gamma \frac{\log|1-wz|}{iz} \, dz,$$ where $\gamma$ is the unit circle with positive orientation.
Attempt 1: With this substitution, the integrand is not holomorphic, because multiplying by $iz$ (a holomorphic function), we get a purely real valued function (at least in some open set in the right half plane), which can only be holomorphic if it is constant, which this function is not. The strategies for contour integrals will probably not help me.
Attempt 2: I tried finding some symmetry (either antipodal point or point with equal imaginary part; horizontally across) to cancel out the integral, but couldn't.
Attempt 3: After searching, I found this post on Math SE. The suggestion there is focus on the function $\log(1-wz)$ recognizing that the real part of this is $\log|1-wz|$ and either (1) "think mean value" or (2) differentiate this function. I don't know how it helps to observe that $\oint_\gamma \frac{1}{1-wz} dz = 0$. I appreciate any suggestion that will help me understand the hints (or another way to see that the integral is 0).