enable the route dump for unit testing of logging feature for ghttp.Server

This commit is contained in:
John 2020-05-05 00:09:39 +08:00
parent 0c021b6da7
commit 770653fafa

View File

@ -32,7 +32,6 @@ func Test_Log(t *testing.T) {
s.BindHandler("/error", func(r *ghttp.Request) {
panic("custom error")
})
s.SetDumpRouterMap(false)
s.SetLogPath(logDir)
s.SetAccessLogEnabled(true)
s.SetErrorLogEnabled(true)