Debug logging for name analysis