mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-23 05:49:07 +02:00
Debug
This commit is contained in:
@@ -42,12 +42,20 @@ func CreateMyDB() (func(), error) {
|
|||||||
wait.ForLog("database system is ready to accept connections").
|
wait.ForLog("database system is ready to accept connections").
|
||||||
WithOccurrence(2).WithStartupTimeout(180*time.Second)),
|
WithOccurrence(2).WithStartupTimeout(180*time.Second)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
log.Printf("[DEBUG] CreateMyDB - 2")
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Printf("[DEBUG] CreateMyDB Error: %s", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("[DEBUG] CreateMyDB - 3")
|
||||||
|
|
||||||
talksConn, err := c.ConnectionString(ctx)
|
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")
|
return GetContextDB(ctx, c, talksConn, err, "NETBIRD_STORE_ENGINE_MYSQL_DSN")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user