Add a logger to testing backend config so it's available to backends during unit tests
This commit is contained in:
parent
37deda3e60
commit
d00374fe3c
|
@ -1,6 +1,8 @@
|
|||
package logical
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
|
@ -72,7 +74,7 @@ func TestSystemView() *StaticSystemView {
|
|||
|
||||
func TestBackendConfig() *BackendConfig {
|
||||
return &BackendConfig{
|
||||
Logger: nil,
|
||||
Logger: log.New(os.Stdout, "", log.LstdFlags),
|
||||
System: TestSystemView(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue