Skip to content

Commit

Permalink
Merge pull request #7569 from uranusjr/req-uninstall-logger
Browse files Browse the repository at this point in the history
Use logger to log instead of logging
  • Loading branch information
chrahunt authored Jan 8, 2020
2 parents eeeecbe + 1ea7a05 commit 5529bac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pip/_internal/operations/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def create_package_set_from_installed(**kwargs):
package_set[name] = PackageDetails(dist.version, dist.requires())
except RequirementParseError as e:
# Don't crash on broken metadata
logging.warning("Error parsing requirements for %s: %s", name, e)
logger.warning("Error parsing requirements for %s: %s", name, e)
problems = True
return package_set, problems

Expand Down
2 changes: 1 addition & 1 deletion src/pip/_internal/req/req_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def rollback(self):
# type: () -> None
"""Undoes the uninstall by moving stashed files back."""
for p in self._moves:
logging.info("Moving to %s\n from %s", *p)
logger.info("Moving to %s\n from %s", *p)

for new_path, path in self._moves:
try:
Expand Down

0 comments on commit 5529bac

Please sign in to comment.