Parcourir la source

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

Max il y a 3 ans
Parent
commit
67a41dca83
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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{