cmd/routed: log paths for twirp apis
This commit is contained in:
parent
3017291b45
commit
28c3094e40
|
@ -13,7 +13,6 @@ import (
|
||||||
"git.xeserv.us/xena/route/internal/tun2"
|
"git.xeserv.us/xena/route/internal/tun2"
|
||||||
proto "git.xeserv.us/xena/route/proto"
|
proto "git.xeserv.us/xena/route/proto"
|
||||||
"github.com/Xe/ln"
|
"github.com/Xe/ln"
|
||||||
"github.com/kr/pretty"
|
|
||||||
"github.com/lucas-clemente/quic-go/h2quic"
|
"github.com/lucas-clemente/quic-go/h2quic"
|
||||||
"github.com/mtneug/pkg/ulid"
|
"github.com/mtneug/pkg/ulid"
|
||||||
kcp "github.com/xtaci/kcp-go"
|
kcp "github.com/xtaci/kcp-go"
|
||||||
|
@ -164,8 +163,13 @@ func New(cfg Config) (*Server, error) {
|
||||||
Handler: middleware.SaveHeaders(middleware.Trace("twirp-https")(mux)),
|
Handler: middleware.SaveHeaders(middleware.Trace("twirp-https")(mux)),
|
||||||
}
|
}
|
||||||
|
|
||||||
pretty.Println(mux)
|
ln.Log(context.Background(), ln.F{
|
||||||
|
"kind": "api",
|
||||||
|
"backends": proto.BackendsPathPrefix,
|
||||||
|
"routes": proto.RoutesPathPrefix,
|
||||||
|
"tokens": proto.TokensPathPrefix,
|
||||||
|
"addr": cfg.GRPCAddr,
|
||||||
|
})
|
||||||
go hs.ListenAndServeTLS("", "")
|
go hs.ListenAndServeTLS("", "")
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
|
|
Loading…
Reference in New Issue