Skip to content

Commit

Permalink
refactor: change log level from info to debug for existing blog and r…
Browse files Browse the repository at this point in the history
…eport checks (#3622)

* refactor: change log level from info to debug for existing blog and report checks

* chore: package updates
  • Loading branch information
derkweijers authored Nov 19, 2024
1 parent 561b279 commit 2ac68b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"pyyaml>=6.0.2",
"sentry-sdk>=2.14.0",
"uritemplate>=4.1.1",
"harvester>=0.3.2",
"harvester>=0.4.0",
]

[tool.uv]
Expand Down
4 changes: 2 additions & 2 deletions src/importer/management/commands/_news_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def process_blog(blog: BlogSchema) -> None:

# Check if the blog already exists
if Blog.objects.filter(title=blog.title, url=blog.url).exists():
logger.info(f"Blog {blog.title} already exists")
logger.debug(f"Blog {blog.title} already exists")
return

logger.info(f"Adding blog: {blog.title}")
Expand All @@ -60,7 +60,7 @@ def process_report(report: ReportSchema) -> None:

# Check if the report already exists
if Report.objects.filter(title=report.title, url=report.url).exists():
logger.info(f"Report {report.title} already exists")
logger.debug(f"Report {report.title} already exists")
return

logger.info(f"Adding report: {report.title}")
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ac68b8

Please sign in to comment.