Commit 50360f2d by Sébastien Eustace Committed by Arun Babu Neelicattu

Propagate package inspection logs

parent c77299ed
...@@ -60,7 +60,7 @@ class AddCommand(InstallerCommand, InitCommand): ...@@ -60,7 +60,7 @@ class AddCommand(InstallerCommand, InitCommand):
" - A url (<b>https://example.com/packages/my-package-0.1.0.tar.gz</b>)\n" " - A url (<b>https://example.com/packages/my-package-0.1.0.tar.gz</b>)\n"
) )
loggers = ["poetry.repositories.pypi_repository"] loggers = ["poetry.repositories.pypi_repository", "poetry.inspection.info"]
def handle(self): def handle(self):
from poetry.core.semver import parse_constraint from poetry.core.semver import parse_constraint
......
...@@ -25,7 +25,7 @@ class DebugResolveCommand(InitCommand): ...@@ -25,7 +25,7 @@ class DebugResolveCommand(InitCommand):
option("install", None, "Show what would be installed for the current system."), option("install", None, "Show what would be installed for the current system."),
] ]
loggers = ["poetry.repositories.pypi_repository"] loggers = ["poetry.repositories.pypi_repository", "poetry.inspection.info"]
def handle(self): def handle(self):
from poetry.core.packages.project_package import ProjectPackage from poetry.core.packages.project_package import ProjectPackage
......
...@@ -45,7 +45,7 @@ dependencies and not including the current project, run the command with the ...@@ -45,7 +45,7 @@ dependencies and not including the current project, run the command with the
<info> poetry install --no-root</info> <info> poetry install --no-root</info>
""" """
_loggers = ["poetry.repositories.pypi_repository"] _loggers = ["poetry.repositories.pypi_repository", "poetry.inspection.info"]
def handle(self): def handle(self):
from poetry.masonry.builders import EditableBuilder from poetry.masonry.builders import EditableBuilder
......
...@@ -25,7 +25,7 @@ list of installed packages ...@@ -25,7 +25,7 @@ list of installed packages
<info>poetry remove</info>""" <info>poetry remove</info>"""
loggers = ["poetry.repositories.pypi_repository"] loggers = ["poetry.repositories.pypi_repository", "poetry.inspection.info"]
def handle(self): def handle(self):
packages = self.argument("packages") packages = self.argument("packages")
......
...@@ -155,7 +155,7 @@ class PackageInfo: ...@@ -155,7 +155,7 @@ class PackageInfo:
self._log( self._log(
"Invalid constraint ({}) found in {}-{} dependencies, " "Invalid constraint ({}) found in {}-{} dependencies, "
"skipping".format(req, package.name, package.version), "skipping".format(req, package.name, package.version),
level="debug", level="warning",
) )
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment