use the standard library log package for logging

This commit is contained in:
Marten Seemann
2017-05-18 14:29:59 +08:00
parent 7e256e0ebe
commit 0dbbb8d1b3
4 changed files with 26 additions and 32 deletions

View File

@@ -2,6 +2,7 @@ package frames
import (
"bytes"
"log"
"os"
"time"
@@ -20,12 +21,12 @@ var _ = Describe("Frame logging", func() {
BeforeEach(func() {
buf.Reset()
utils.SetLogLevel(utils.LogLevelDebug)
utils.SetLogWriter(&buf)
log.SetOutput(&buf)
})
AfterSuite(func() {
utils.SetLogLevel(utils.LogLevelNothing)
utils.SetLogWriter(os.Stdout)
log.SetOutput(os.Stdout)
})
It("doesn't log when debug is disabled", func() {