This integral becomes deceptively easy when you simplify the integrand and use Feynman's Trick to differentiate with respect to its parameter $a$. First off, use the double angle identity for $\sin x$$$\sin x=2\sin\frac x2\cos\frac x2$$and call our integral $I$. What's left becomes$$\begin{align*}I(a) & =\int\limits_0^{\pi/2}dx\,\cos\frac x2\sqrt{2\sin^2\frac x2}\log\left(\frac 1a\tan x\tan\frac x2\right)\\ & =\sqrt2\int\limits_0^{\pi/2}dx\,\sin\frac x2\cos\frac x2\log\left(\frac 1a\tan x\tan\frac x2\right)\\ & =\frac 1{\sqrt2}\int\limits_0^{\pi/2}dx\,\sin x\log\left(\frac 1a\tan x\tan\frac x2\right)\end{align*}$$
Now differentiate with respect to $a$. The natural log then becomes $-1/a$ and the resulting integral becomes trivial
$$I'(a)=-\frac 1{a\sqrt2}\int\limits_0^{\pi/2}dx\,\sin x=-\frac 1{a\sqrt2}$$
Integrate with respect to $a$ and we get
$$I(a)=-\frac {\log a}{\sqrt2}+C$$
When $a=0$, then $I(a)=0$ and the right-hand side also equals zero. Therefore, $C=0$ and the identity has been proven$$\int\limits_0^{\pi/2}dx\,\cos\frac x2\log\left(\frac 1a\tan x\tan\frac x2\right)\sqrt{\sin x\tan\frac x2}\color{blue}{=-\frac {\log a}{\sqrt2}}$$