Skip to content
Snippets Groups Projects
Commit 37c64dd9 authored by OZGCloud's avatar OZGCloud
Browse files

fixed error

parent 0b3da8c4
Branches
Tags
No related merge requests found
......@@ -60,12 +60,12 @@ func TestRequestLoggingMiddleware(t *testing.T) {
SetUpHttpGateway()
var buf bytes.Buffer
log.Baselog.SetOutput(&buf)
log.SetOutput(&buf)
originalFlags := log.Baselog.Flags()
defer func() {
log.Baselog.SetOutput(nil)
log.Baselog.SetFlags(originalFlags)
log.SetOutput(nil)
log.SetFlags(originalFlags)
}()
http.Get("http://localhost:8082/")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment