Skip to content

Commit

Permalink
fix log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer committed Nov 7, 2024
1 parent 3ade46a commit 91430e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions management/server/sql_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ func NewSqlStore(ctx context.Context, db *gorm.DB, storeEngine StoreEngine, metr

if storeEngine == SqliteStoreEngine {
if err == nil {
log.Warnf("setting NB_SQL_MAX_OPEN_CONNS is not supported for sqlite, using default value 1")
log.WithContext(ctx).Warnf("setting NB_SQL_MAX_OPEN_CONNS is not supported for sqlite, using default value 1")
}
conns = 1
}

sql.SetMaxOpenConns(conns)

log.Infof("Set max open db connections to %d", conns)
log.WithContext(ctx).Infof("Set max open db connections to %d", conns)

if err := migrate(ctx, db); err != nil {
return nil, fmt.Errorf("migrate: %w", err)
Expand Down

0 comments on commit 91430e0

Please sign in to comment.