Skip to content

Log configurations on server startup#13

Merged
slhmy merged 3 commits intomainfrom
copilot/log-server-start-configurations
Feb 6, 2026
Merged

Log configurations on server startup#13
slhmy merged 3 commits intomainfrom
copilot/log-server-start-configurations

Conversation

Copy link
Contributor

Copilot AI commented Feb 5, 2026

Adds configuration logging during server initialization to improve operational visibility.

Changes

  • bootstrap/config_log.go: New file implementing logConfig() and server-specific logging functions

    • Logs common config: mode, log level, log format
    • Logs gRPC-specific config: port, persistence, Redis, SMTP, auth settings
    • Logs Gateway-specific config: HTTP port
    • Excludes sensitive values (passwords, secrets, keys)
  • bootstrap/init.go: Calls logConfig() after initLog() in both Init() and InitWithConfigPath()

Output Example

INF Configuration loaded mode=development log.level="" log.format="" cmd=grpc
INF gRPC server configuration grpc_port=50051 persistence.type="" persistence.gorm.driver=sqlite persistence.gorm.dbname="" redis.urls=[localhost:6379] smtp_mailer.host="" smtp_mailer.port=0 auth.oauth_state_expiration=10m ...
INF APP initialized cmd=grpc

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: slhmy <31381093+slhmy@users.noreply.github.com>
Copilot AI changed the title [WIP] Add logging for configurations on server start Log configurations on server startup Feb 5, 2026
Copilot AI requested a review from slhmy February 5, 2026 14:29
@slhmy slhmy marked this pull request as ready for review February 6, 2026 05:14
@slhmy slhmy merged commit fa668e0 into main Feb 6, 2026
1 check passed
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