Skip to content

[FEATURE REQUEST] - Add Logging for Database Connection Errors #42

Description

@rishyym0927

🚀 Overview

Currently, database connection errors in the ConnectToDB function lack detailed logs. Improving logging will help diagnose connection issues more efficiently.

🛠 Use Case

  • Helps developers quickly identify and resolve database connection failures.
  • Provides context such as environment, database host, and port to improve debugging.
  • Enhances logging for better monitoring in production and staging.

📊 Expected Behavior

  • Modify the connectToDB.go file in the initializers folder.
  • Enhance error messages to include:
    • The environment (production, staging, etc.).
    • The database host and port (if available).

🛠 Skills Required

  • Go programming
  • Logging in Go

Thank you for contributing to StoreHUB! 👨‍💻👩‍💻

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions