diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-12 21:35:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 21:35:52 -0400 |
commit | a2d5115725dea018edb8a8dbaf3c622fabe2680e (patch) | |
tree | cacbd836373239b0b3f5b8ce25fc642ce43179a6 /svc/init_test.go | |
parent | be76daaa8b4e6f6d5f60c79ecd84a8d034cbe351 (diff) | |
parent | fbfe7f582979c9db9089187b7316013bd0b1d423 (diff) | |
download | getwtxt-a2d5115725dea018edb8a8dbaf3c622fabe2680e.tar.gz |
Merge pull request #8 from getwtxt/multiple-logfiles
Using separate log files for requests and other messages
Diffstat (limited to 'svc/init_test.go')
-rw-r--r-- | svc/init_test.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/svc/init_test.go b/svc/init_test.go index 0c417b4..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,18 +40,13 @@ func initTestDB() { }) } -func initTestPers() { - initPersOnce.Do(func() { - initPersistence() - }) -} - func logToNull() { hush, err := os.Open("/dev/null") if err != nil { log.Printf("%v\n", err) } log.SetOutput(hush) + reqLog = log.New(hush, "", log.LstdFlags) } func testConfig() { |