mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
Remove debugging log.Printf()
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@@ -115,8 +114,6 @@ func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
uri := r.RequestURI
|
uri := r.RequestURI
|
||||||
path := strings.Split(uri, "/")
|
path := strings.Split(uri, "/")
|
||||||
|
|
||||||
log.Printf("%s %s", method, uri)
|
|
||||||
|
|
||||||
ROUTE:
|
ROUTE:
|
||||||
for _, route := range router.routes[method] {
|
for _, route := range router.routes[method] {
|
||||||
if len(route.path) != len(path) {
|
if len(route.path) != len(path) {
|
||||||
|
|||||||
Reference in New Issue
Block a user