Remove Debugs

This commit is contained in:
İsmail
2024-11-06 21:15:51 +03:00
parent dc5ed4f2ed
commit 0c00dca7ec
2 changed files with 0 additions and 13 deletions

View File

@@ -280,8 +280,6 @@ func NewTestStoreFromSQL(ctx context.Context, filename string, dataDir string) (
}
}
log.Printf("[DEBUG] Kind Type: %s", kind)
store, err := NewSqlStore(ctx, db, SqliteStoreEngine, nil)
if err != nil {
return nil, nil, fmt.Errorf("failed to create test store: %v", err)
@@ -292,8 +290,6 @@ func NewTestStoreFromSQL(ctx context.Context, filename string, dataDir string) (
func getSqlStoreEngine(ctx context.Context, store *SqlStore, kind StoreEngine) (Store, func(), error) {
log.Printf("[DEBUG] Kind Type - 2: %s", kind)
if kind == PostgresStoreEngine {
cleanUp, err := testutil.CreatePGDB()
if err != nil {
@@ -305,8 +301,6 @@ func getSqlStoreEngine(ctx context.Context, store *SqlStore, kind StoreEngine) (
return nil, nil, fmt.Errorf("%s is not set", postgresDsnEnv)
}
log.Printf("[DEBUG] PostgresStoreEngine DSN: %s", dsn)
store, err = NewPostgresqlStoreFromSqlStore(ctx, store, dsn, nil)
if err != nil {
return nil, nil, err
@@ -326,8 +320,6 @@ func getSqlStoreEngine(ctx context.Context, store *SqlStore, kind StoreEngine) (
return nil, nil, fmt.Errorf("%s is not set", mysqlDsnEnv)
}
log.Printf("[DEBUG] MysqlStoreEngine DSN: %s", dsn)
store, err = NewMysqlStoreFromSqlStore(ctx, store, dsn, nil)
if err != nil {
return nil, nil, err

View File

@@ -35,8 +35,6 @@ func CreatePGDB() (func(), error) {
func CreateMyDB() (func(), error) {
log.Printf("[DEBUG] CreateMyDB")
ctx := context.Background()
c, err := mysql.Run(ctx,
"mysql:8.0.40",
@@ -46,14 +44,11 @@ func CreateMyDB() (func(), error) {
)
if err != nil {
log.Printf("[DEBUG] CreateMyDB Error: %s", err)
return nil, err
}
talksConn, err := c.ConnectionString(ctx)
log.Printf("[DEBUG] CreateMyDB - ConnectionString: %s, Error: %s", talksConn, err)
return GetContextDB(ctx, c, talksConn, err, "NETBIRD_STORE_ENGINE_MYSQL_DSN")
}