Add a *log.Logger argument to physical.Factory

Logging in the backend is a good thing.  This is a noisy interface change but should be a functional noop.
This commit is contained in:
Sean Chittenden
2016-04-25 20:10:32 -07:00
parent 27f5b96411
commit 455b76828f
33 changed files with 194 additions and 82 deletions

View File

@@ -1,6 +1,7 @@
package physical
import (
"log"
"os"
"testing"
@@ -19,7 +20,8 @@ func TestPostgreSQLBackend(t *testing.T) {
}
// Run vault tests
b, err := NewBackend("postgresql", map[string]string{
logger := log.New(os.Stderr, "", log.LstdFlags)
b, err := NewBackend("postgresql", logger, map[string]string{
"connection_url": connURL,
"table": table,
})