Skip to content

Commit

Permalink
Add pre-log (#54)
Browse files Browse the repository at this point in the history
Closes #52 
Log the package about to be scanned, so that it's easier to debug

Signed-off-by: Robin <[email protected]>
  • Loading branch information
Robin5605 authored May 1, 2023
1 parent e1547cc commit 86b726e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bot/exts/dragonfly/dragonfly.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ async def run(

scanned_packages: list[str] = []
for package_metadata in packages_to_check:
log.info("Starting scan of package '%s'", package_metadata.title)
with Session(engine) as session:
pypi_package_scan: PyPIPackageScan | None = session.scalars(
select(PyPIPackageScan).filter_by(name=package_metadata.title)
Expand Down

0 comments on commit 86b726e

Please sign in to comment.