testing: reduce usage of the MustDefaultLogger constructor (#7960)

* testing: reduce usage of the MustDefualtLogger constructor

* Apply suggestions from code review

Co-authored-by: M. J. Fromberger <michael.j.fromberger@gmail.com>

* cleanup tests

Co-authored-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
This commit is contained in:
Sam Kleinman
2022-02-24 02:43:11 +00:00
committed by GitHub
co-authored by M. J. Fromberger
parent a57567ba33
commit 62a1cb8d17
4 changed files with 98 additions and 103 deletions
+1 -2
View File
@@ -22,8 +22,7 @@ var mux *http.ServeMux
func init() {
mux = http.NewServeMux()
lgr := log.MustNewDefaultLogger(log.LogFormatPlain, log.LogLevelInfo)
rs.RegisterRPCFuncs(mux, rpcFuncMap, lgr)
rs.RegisterRPCFuncs(mux, rpcFuncMap, log.NewNopLogger())
}
func Fuzz(data []byte) int {