Skip to content

Commit afc263c

Browse files
committed
2 parents 4e4f6cd + af5aff9 commit afc263c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

routers.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package main
77
import (
88
"fmt"
99
"io"
10+
"io/ioutil"
1011
"log"
1112
"net/http"
1213
"os"
@@ -932,15 +933,15 @@ func initTango() {
932933
}
933934

934935
func loadTango(routes []route) http.Handler {
935-
tg := tango.New()
936+
tg := tango.NewWithLog(tango.NewLogger(ioutil.Discard))
936937
for _, route := range routes {
937938
tg.Route([]string{route.method}, route.path, tangoHandler)
938939
}
939940
return tg
940941
}
941942

942943
func loadTangoSingle(method, path string, handler func(*tango.Context)) http.Handler {
943-
tg := tango.New()
944+
tg := tango.NewWithLog(tango.NewLogger(ioutil.Discard))
944945
tg.Route([]string{method}, path, handler)
945946
return tg
946947
}

0 commit comments

Comments
 (0)