log connection

This commit is contained in:
merdan 2024-08-30 12:02:14 +05:00
parent a66e97fb07
commit 84f7b3fb7e
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ func init() {
func main() { func main() {
fmt.Printf("DB: %s", mysqlDSN)
// Initialize MySQL database connection // Initialize MySQL database connection
db, err := gorm.Open(mysql.Open(mysqlDSN), &gorm.Config{ db, err := gorm.Open(mysql.Open(mysqlDSN), &gorm.Config{
Logger: logger.Default.LogMode(logger.Info), Logger: logger.Default.LogMode(logger.Info),