mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-21 04:15:10 +00:00
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:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user