Fix log passing