🚀 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! 👨💻👩💻
🚀 Overview
Currently, database connection errors in the
ConnectToDBfunction lack detailed logs. Improving logging will help diagnose connection issues more efficiently.🛠 Use Case
📊 Expected Behavior
connectToDB.gofile in theinitializersfolder.🛠 Skills Required
Thank you for contributing to StoreHUB! 👨💻👩💻