We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d373aca + 27cc99a commit af5aff9Copy full SHA for af5aff9
routers.go
@@ -7,6 +7,7 @@ package main
7
import (
8
"fmt"
9
"io"
10
+ "io/ioutil"
11
"log"
12
"net/http"
13
"os"
@@ -909,15 +910,15 @@ func initTango() {
909
910
}
911
912
func loadTango(routes []route) http.Handler {
- tg := tango.New()
913
+ tg := tango.NewWithLog(tango.NewLogger(ioutil.Discard))
914
for _, route := range routes {
915
tg.Route([]string{route.method}, route.path, tangoHandler)
916
917
return tg
918
919
920
func loadTangoSingle(method, path string, handler func(*tango.Context)) http.Handler {
921
922
tg.Route([]string{method}, path, handler)
923
924
0 commit comments