Skip to content

Conversation

@dkhalife
Copy link
Owner

Summary

  • make NewLogger private as newLogger
  • remove unused XRequestIdKey constant and TimeoutMiddleware
  • update tests

Testing

  • go test ./...

https://chatgpt.com/codex/tasks/task_e_6872ce04ea04832a858954c4f3422a26

Copilot AI review requested due to automatic review settings July 12, 2025 21:11
Copy link
Contributor

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 PR refactors the logger setup by making NewLogger private as newLogger, removes the unused request ID constant and timeout middleware, and updates tests accordingly.

  • Changed NewLogger to newLogger and adjusted references in DefaultLogger and tests
  • Removed unused XRequestIdKey constant and TimeoutMiddleware from middleware package
  • Updated tests to call newLogger instead of NewLogger

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
internal/utils/middleware/middleware.go Dropped unused imports, XRequestIdKey, and timeout middleware
internal/services/logging/logging.go Renamed NewLogger to newLogger and updated callers
internal/services/logging/logging_test.go Updated test to call newLogger instead of NewLogger

@codecov
Copy link

codecov bot commented Jul 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@dkhalife dkhalife merged commit b7b75d0 into main Jul 12, 2025
5 checks passed
@dkhalife dkhalife deleted the codex/make-newlogger-private-in-logging branch July 12, 2025 21:12
dkhalife added a commit that referenced this pull request Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants