Add logging to dispatcher servlet condition