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

[Enhancement]: Rework Logging #216

Closed
arcinfini opened this issue Jul 7, 2024 · 0 comments
Closed

[Enhancement]: Rework Logging #216

arcinfini opened this issue Jul 7, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@arcinfini
Copy link
Contributor

arcinfini commented Jul 7, 2024

Currently logging level is always set to debug even in production. This should be limited to info.

  • Have an option in the .env file or somewhere outside of commitable code to define the logging level.

Search the code and standardize logging attempts.

  • Have a dedicated logging object for each file.
  • This dedicated logging object should be named after the module it is in. _log = logging.getLogger(__name__).
  • Debug logging should be limited to locations with complex logic or for other assertions.
  • Info logging should be limited to loading of cogs and other important bot states.
  • All exception raised and not handled should have an error log associated with it.
@arcinfini arcinfini added the enhancement New feature or request label Jul 7, 2024
@arcinfini arcinfini self-assigned this Jul 7, 2024
@arcinfini arcinfini added the awaiting review has a pull request open for review label Jul 8, 2024
@arcinfini arcinfini added this to the Version 3.1.0 milestone Jul 8, 2024
@Utkarsh-Patel-13 Utkarsh-Patel-13 added awaiting review has a pull request open for review and removed awaiting review has a pull request open for review labels Jul 8, 2024
@arcinfini arcinfini removed the awaiting review has a pull request open for review label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants