Просмотр исходного кода

Remove db datasource from error msg to prevent leaking of secrets (#1528)

Max 3 лет назад
Родитель
Сommit
67a41dca83
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      db/db.go

+ 1 - 1
db/db.go

@@ -119,7 +119,7 @@ func New(c *Config) (AuthDB, error) {
 
 	db, err := nosql.New(c.Type, c.DataSource, opts...)
 	if err != nil {
-		return nil, errors.Wrapf(err, "Error opening database of Type %s with source %s", c.Type, c.DataSource)
+		return nil, errors.Wrapf(err, "Error opening database of Type %s", c.Type)
 	}
 
 	tables := [][]byte{