From 17f0eb13396ad31083e786ed64aef368646c2aa6 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 20 Jan 2016 20:55:56 +0100 Subject: Convert logging to standard Go log.Logger This is in preparation of logging to syslog. --- cryptfs/config_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cryptfs/config_test.go') diff --git a/cryptfs/config_test.go b/cryptfs/config_test.go index 817e6ae..5cf04bf 100644 --- a/cryptfs/config_test.go +++ b/cryptfs/config_test.go @@ -2,6 +2,8 @@ package cryptfs import ( "fmt" + "io/ioutil" + "os" "testing" "time" ) @@ -33,10 +35,10 @@ func TestLoadV2(t *testing.T) { func TestLoadV2PwdError(t *testing.T) { if !testing.Verbose() { - Warn.Disable() + Warn.SetOutput(ioutil.Discard) } _, _, err := LoadConfFile("config_test/v2.conf", "wrongpassword") - Warn.Enable() + Warn.SetOutput(os.Stderr) if err == nil { t.Errorf("Loading with wrong password must fail but it didn't") } -- cgit v1.2.3