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

feat(bm_monitor.py): add logging and graceful shutdown handling #31

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

mauvehed
Copy link
Owner

@mauvehed mauvehed commented Dec 21, 2024

Introduce logging to replace print statements, providing better control over log levels and output formatting. This change enhances the ability to debug and monitor the application by logging configuration details and key events. Additionally, implement a signal handler to ensure graceful shutdown on receiving SIGINT or SIGTERM, improving the application's robustness and user experience.

Summary by Sourcery

Add logging and graceful shutdown handling to the Brandmeister monitor.

New Features:

  • Log configuration details and key events using configurable log levels and formatting.
  • Handle SIGINT and SIGTERM signals to gracefully shut down the application.

Introduce logging to replace print statements, providing better control
over log levels and output formatting. This change enhances the ability
to debug and monitor the application by logging configuration details
and key events. Additionally, implement a signal handler to ensure
graceful shutdown on receiving SIGINT or SIGTERM, improving the
application's robustness and user experience.
@mauvehed mauvehed added the project work Non-code related changes to the project/git label Dec 21, 2024
@mauvehed mauvehed self-assigned this Dec 21, 2024
@mauvehed mauvehed merged commit ae16549 into main Dec 21, 2024
4 checks passed
@mauvehed mauvehed deleted the chore/add-logging branch December 21, 2024 21:17
Copy link

sourcery-ai bot commented Dec 22, 2024

🧙 Sourcery is reviewing your pull request!


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project work Non-code related changes to the project/git
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant