Skip to content

Conversation

@Gasoid
Copy link
Owner

@Gasoid Gasoid commented Jun 21, 2025

fixes #29

@Gasoid Gasoid self-assigned this Jun 21, 2025
@Gasoid Gasoid requested a review from Copilot June 21, 2025 13:32
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces enhanced logging functionality to improve log filtering by adding an Info logging method and updating the middleware configuration in the bot to skip health check endpoints.

  • Added a new Info function in logger/logger.go for logging informational messages.
  • Replaced the default middleware logger in bot.go with a custom logger middleware that skips logging for the "/healthy" endpoint.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
logger/logger.go Introduces a new Info logging method that wraps slog.Info
bot.go Updates middleware configuration to skip /healthy endpoint logging
Comments suppressed due to low confidence (1)

logger/logger.go:63

  • [nitpick] Add a brief comment describing the purpose of the Info function for consistency with the existing Debug function documentation.
func Info(msg string, args ...any) {

Gasoid and others added 4 commits June 21, 2025 17:33
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Gasoid Gasoid merged commit e820768 into main Jun 21, 2025
3 checks passed
@Gasoid Gasoid deleted the health_logging branch June 21, 2025 18:48
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.

Filter health endpoint in logs

2 participants