mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-24 06:15:51 +02:00
chore: reduce log noise
This commit is contained in:
parent
a1ddfb8200
commit
ce39e45cc2
@ -5,18 +5,18 @@
|
||||
package bots
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/web"
|
||||
"code.gitea.io/gitea/routers/api/bots/grpc"
|
||||
)
|
||||
|
||||
func grpcHandler(h http.Handler) http.HandlerFunc {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
log.Println("protocol version:", r.Proto)
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
log.Trace("protocol version:", r.Proto)
|
||||
h.ServeHTTP(w, r)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func gRPCRouter(r *web.Route, fn grpc.RouteFn) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user