From d00374fe3ccb4bf6f4b5f685d4f9b8558597c28a Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Thu, 30 Jun 2016 09:17:14 -0400 Subject: [PATCH] Add a logger to testing backend config so it's available to backends during unit tests --- logical/testing.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/logical/testing.go b/logical/testing.go index 14296e284..af11f1701 100644 --- a/logical/testing.go +++ b/logical/testing.go @@ -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(), } }