Skip to content

fix(logging): implement proper logging system#493

Merged
ReenigneArcher merged 1 commit intomasterfrom
fix/logging/implement-proper-logging-system
Feb 17, 2026
Merged

fix(logging): implement proper logging system#493
ReenigneArcher merged 1 commit intomasterfrom
fix/logging/implement-proper-logging-system

Conversation

@ReenigneArcher
Copy link
Member

Description

Implements a logging system which will output to the below locations simultaneously. For stdout logging, the output is color coded. And for all the systems the file/module and line number are included in the log message.

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

@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

❌ Patch coverage is 73.95349% with 56 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.73%. Comparing base (6868c08) to head (5547b59).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/common/logging_config.py 85.83% 17 Missing ⚠️
src/common/rank.py 57.69% 11 Missing ⚠️
src/reddit_bot/bot.py 44.44% 10 Missing ⚠️
src/common/database.py 56.25% 7 Missing ⚠️
src/__main__.py 0.00% 6 Missing ⚠️
src/discord_bot/cogs/rank.py 57.14% 3 Missing ⚠️
src/discord_bot/bot.py 80.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #493      +/-   ##
==========================================
+ Coverage   60.09%   61.73%   +1.63%     
==========================================
  Files          25       26       +1     
  Lines        1812     1947     +135     
==========================================
+ Hits         1089     1202     +113     
- Misses        723      745      +22     
Files with missing lines Coverage Δ
src/common/crypto.py 100.00% <100.00%> (ø)
src/common/sponsors.py 100.00% <100.00%> (ø)
src/common/webapp.py 96.99% <100.00%> (+0.04%) ⬆️
src/discord_bot/bot.py 89.01% <80.00%> (+0.24%) ⬆️
src/discord_bot/cogs/rank.py 28.03% <57.14%> (+0.67%) ⬆️
src/__main__.py 0.00% <0.00%> (ø)
src/common/database.py 58.88% <56.25%> (-0.23%) ⬇️
src/reddit_bot/bot.py 69.46% <44.44%> (ø)
src/common/rank.py 58.57% <57.69%> (+0.29%) ⬆️
src/common/logging_config.py 85.83% <85.83%> (ø)

@ReenigneArcher ReenigneArcher force-pushed the fix/logging/implement-proper-logging-system branch 2 times, most recently from a80450f to 1e92275 Compare February 16, 2026 23:44
@ReenigneArcher ReenigneArcher force-pushed the fix/logging/implement-proper-logging-system branch from 1e92275 to 5547b59 Compare February 17, 2026 00:15
@sonarqubecloud
Copy link

@ReenigneArcher ReenigneArcher merged commit 4a2a7de into master Feb 17, 2026
17 checks passed
@ReenigneArcher ReenigneArcher deleted the fix/logging/implement-proper-logging-system branch February 17, 2026 00:18
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