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 4e4f6cd + af5aff9 commit afc263cCopy full SHA for afc263c
routers.go
@@ -7,6 +7,7 @@ package main
7
import (
8
"fmt"
9
"io"
10
+ "io/ioutil"
11
"log"
12
"net/http"
13
"os"
@@ -932,15 +933,15 @@ func initTango() {
932
933
}
934
935
func loadTango(routes []route) http.Handler {
- tg := tango.New()
936
+ tg := tango.NewWithLog(tango.NewLogger(ioutil.Discard))
937
for _, route := range routes {
938
tg.Route([]string{route.method}, route.path, tangoHandler)
939
940
return tg
941
942
943
func loadTangoSingle(method, path string, handler func(*tango.Context)) http.Handler {
944
945
tg.Route([]string{method}, path, handler)
946
947
0 commit comments