Log uri only if it is set