Skip to content

fix(logging): use logger.exception in exception handling logs#540

Merged
ReenigneArcher merged 1 commit into
masterfrom
fix/logging/use-logger.exception
Jun 3, 2026
Merged

fix(logging): use logger.exception in exception handling logs#540
ReenigneArcher merged 1 commit into
masterfrom
fix/logging/use-logger.exception

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Fixes sonar warnings.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@sonarqubecloud

sonarqubecloud Bot commented Jun 3, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 26.31579% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.63%. Comparing base (5d45c87) to head (c9a6a3e).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/common/rank.py 0.00% 10 Missing ⚠️
src/reddit_bot/bot.py 40.00% 6 Missing ⚠️
src/common/database.py 60.00% 4 Missing ⚠️
src/discord_bot/cogs/rank.py 0.00% 4 Missing ⚠️
src/discord_bot/bot.py 0.00% 2 Missing ⚠️
src/discord_bot/cogs/autoban.py 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #540   +/-   ##
=======================================
  Coverage   61.63%   61.63%           
=======================================
  Files          27       27           
  Lines        1989     1989           
=======================================
  Hits         1226     1226           
  Misses        763      763           
Files with missing lines Coverage Δ
src/discord_bot/bot.py 89.21% <0.00%> (ø)
src/discord_bot/cogs/autoban.py 45.16% <0.00%> (ø)
src/common/database.py 58.88% <60.00%> (ø)
src/discord_bot/cogs/rank.py 28.03% <0.00%> (ø)
src/reddit_bot/bot.py 69.46% <40.00%> (ø)
src/common/rank.py 58.57% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d45c87...c9a6a3e. Read the comment docs.

@ReenigneArcher ReenigneArcher merged commit 7d9cb00 into master Jun 3, 2026
16 of 17 checks passed
@ReenigneArcher ReenigneArcher deleted the fix/logging/use-logger.exception branch June 3, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant