Skip to content

Commit

Permalink
debug: log
Browse files Browse the repository at this point in the history
  • Loading branch information
gllm-dev committed Mar 27, 2024
1 parent 8c45021 commit 02f1ad1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/infrastructure/repositories/sql/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package sql

import (
"database/sql"
"fmt"
"path/filepath"

"github.com/pressly/goose"
Expand Down Expand Up @@ -52,7 +53,9 @@ func newMySQL(cfg *Config) (*Client, error) {
}

func newCloudSQL(cfg *Config) (*Client, error) {
sqlDB, err := sql.Open("mysql", cfg.CloudSQLDSN())
dsn := cfg.CloudSQLDSN()
fmt.Println("DSN: " + dsn)
sqlDB, err := sql.Open("mysql", dsn)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 02f1ad1

Please sign in to comment.