refact: Changes required for gorm v2 (#1528)

This commit is contained in:
Jim authored and GitHub committed 2021-09-30 08:47:34 -04:00
1 parent 0d74f8dbc9
commit 136ac00b49
118 files changed
+1127 -580

No files matched your search

+2 -1
View File
@@ -20,6 +20,7 @@ import (
"github.com/hashicorp/boundary/testing/dbtest"
capoidc "github.com/hashicorp/cap/oidc"
"github.com/hashicorp/go-multierror"
"gorm.io/gorm/logger"
)
func (b *Server) CreateDevDatabase(ctx context.Context, opt ...Option) error {
@@ -100,7 +101,7 @@ func (b *Server) CreateDevDatabase(ctx context.Context, opt ...Option) error {
return err
}
b.Database.LogMode(true)
b.Database.Config.Logger.LogMode(logger.Info)
if err := b.CreateGlobalKmsKeys(ctx); err != nil {
if c != nil {