Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] More logging to the task #145

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Section Order:
### Added

- Integrity hashes for the static files
- More logging to the task, since I couldn't believe there are no sovereignty
campaigns at all. Well, the Equinox update works, null-sec is "truly" reinvigorated.

### Changed

Expand Down
5 changes: 5 additions & 0 deletions sovtimer/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@

campaigns_from_esi = Campaign.get_sov_campaigns_from_esi()

logger.debug(

Check warning on line 74 in sovtimer/tasks.py

View check run for this annotation

Codecov / codecov/patch

sovtimer/tasks.py#L74

Added line #L74 was not covered by tests
msg=f"Number of sovereignty campaigns from ESI: {len(campaigns_from_esi)}"
)

if campaigns_from_esi:
logger.debug(msg="Updating sovereignty campaigns …")

with transaction.atomic():
campaigns = []

Expand Down
Loading