Skip to content

Comments

feat: update logging and settings configuration with infra services#1032

Merged
gcharest merged 1 commit intomainfrom
feat/main_infra_settings
Jan 8, 2026
Merged

feat: update logging and settings configuration with infra services#1032
gcharest merged 1 commit intomainfrom
feat/main_infra_settings

Conversation

@gcharest
Copy link
Contributor

@gcharest gcharest commented Jan 8, 2026

Summary | Résumé

This pull request refactors the initialization logic in app/main.py to improve configuration and logging setup. The most important changes are grouped below:

Configuration and Logging Refactor:

  • Replaced imports from core.config and core.logging with new imports from infrastructure.services and infrastructure.logging.setup, indicating a shift to infrastructure-based configuration and logging.
  • Replaced get_module_logger() with configure_logging(settings=settings), explicitly configuring logging via structlog using the settings object.
  • Replaced load_dotenv() with get_settings(), showing a move away from environment variable loading to a settings service.

@gcharest gcharest requested a review from a team January 8, 2026 22:27
@gcharest gcharest self-assigned this Jan 8, 2026
@gcharest gcharest merged commit eaae982 into main Jan 8, 2026
9 checks passed
@gcharest gcharest deleted the feat/main_infra_settings branch January 8, 2026 22:32
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.

2 participants