Fix bug in recent change to logging code.
Fix bug in recent change to logging code.

mode is not computed in dry_run mode, so it can't be included in the
log message.

pypa/setuptools,pypa/setuptools,pypa/setuptools