From 979e1f93d563637bcca99bcc56a03199807b92d8 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Wed, 12 Jun 2019 21:11:48 -0400 Subject: separate request and message log --- svc/init_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'svc/init_test.go') diff --git a/svc/init_test.go b/svc/init_test.go index 0c417b4..bc77ddc 100644 --- a/svc/init_test.go +++ b/svc/init_test.go @@ -53,6 +53,7 @@ func logToNull() { log.Printf("%v\n", err) } log.SetOutput(hush) + reqLog = log.New(hush, "", log.LstdFlags) } func testConfig() { -- cgit 1.4.1-2-gfad0 From fbfe7f582979c9db9089187b7316013bd0b1d423 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Wed, 12 Jun 2019 21:24:02 -0400 Subject: removed unused func/var --- svc/init_test.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'svc/init_test.go') diff --git a/svc/init_test.go b/svc/init_test.go index bc77ddc..314d5f4 100644 --- a/svc/init_test.go +++ b/svc/init_test.go @@ -18,7 +18,6 @@ var ( testport string initTestOnce sync.Once initDBOnce sync.Once - initPersOnce sync.Once ) func initTestConf() { @@ -41,12 +40,6 @@ func initTestDB() { }) } -func initTestPers() { - initPersOnce.Do(func() { - initPersistence() - }) -} - func logToNull() { hush, err := os.Open("/dev/null") if err != nil { -- cgit 1.4.1-2-gfad0