diff --git a/postgres_gorm/postgres_gorm.go b/postgres_gorm/postgres_gorm.go index 4b831edd..e7ae7c9e 100644 --- a/postgres_gorm/postgres_gorm.go +++ b/postgres_gorm/postgres_gorm.go @@ -319,9 +319,10 @@ func Start_ctx(ctx *context.Context, WaitGroup *sync.WaitGroup) error { // Start - делает соединение с БД, отключение и др. func Start(ApplicationName string) { err := Connect_WithApplicationName_err(ApplicationName) - if err != nil { - log.Panic("Postgres gorm Start() error: ", err) - } + LogInfo_Connected(err) + //if err != nil { + // log.Panic("Postgres gorm Start() error: ", err) + //} stopapp.GetWaitGroup_Main().Add(1) go WaitStop() diff --git a/postgres_pgx/postgres_pgx.go b/postgres_pgx/postgres_pgx.go index 9b9bbc1d..7b054abf 100644 --- a/postgres_pgx/postgres_pgx.go +++ b/postgres_pgx/postgres_pgx.go @@ -292,7 +292,8 @@ func Start_ctx(ctx *context.Context, WaitGroup *sync.WaitGroup) error { // Start - делает соединение с БД, отключение и др. func Start(ApplicationName string) { - Connect_WithApplicationName_err(ApplicationName) + err := Connect_WithApplicationName_err(ApplicationName) + LogInfo_Connected(err) stopapp.GetWaitGroup_Main().Add(1) go WaitStop()