Log the exception when verbosity > 1

This commit is contained in:
Pradyun S. Gedam 2017-05-19 16:34:23 +05:30
parent 5605976160
commit a1ccc52970
1 changed files with 3 additions and 1 deletions

View File

@ -319,7 +319,9 @@ class InstallCommand(RequirementCommand):
message_parts.append(permissions_part)
message_parts.append("\n")
logger.error("".join(message_parts))
logger.error(
"".join(message_parts), exc_info=(options.verbose > 1)
)
return ERROR
except PreviousBuildDirError:
options.no_clean = True