Skip to content

[Backend] Log non-sensitive env vars on startup #331#357

Open
Rajkoli145 wants to merge 2 commits intoAgora-Events:mainfrom
Rajkoli145:feature/log-env-vars-331
Open

[Backend] Log non-sensitive env vars on startup #331#357
Rajkoli145 wants to merge 2 commits intoAgora-Events:mainfrom
Rajkoli145:feature/log-env-vars-331

Conversation

@Rajkoli145
Copy link
Copy Markdown

@Rajkoli145 Rajkoli145 commented Mar 29, 2026

Overview :

This PR improves troubleshooting by logging non-sensitive configuration parameters (e.g., PORT, RUST_ENV, RUST_LOG, CORS_ALLOWED_ORIGINS) during the server startup process.

Changes

  • Logging: Added tracing::info! statements in server/src/main.rs to display the application's configuration after it is loaded.
  • Security: Strictly ensured that sensitive environment variables, specifically DATABASE_URL, are NOT logged to the console or log files.

Verification

The server starts normally and displays the following configuration logs:

INFO agora_server: Configuration: PORT=3001
INFO agora_server: Configuration: RUST_ENV=development
INFO agora_server: Configuration: RUST_LOG=info
INFO agora_server: Configuration: CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
No sensitive information (database credentials, secrets) is visible in the logs.

closes #331

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 29, 2026

@Rajkoli145 is attempting to deploy a commit to the oseh-svg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@Rajkoli145 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

[Backend] Log non-sensitive env vars on startup

1 participant