diff --git a/cmd/routed/server.go b/cmd/routed/server.go index 5dc73bc..4bc54ec 100644 --- a/cmd/routed/server.go +++ b/cmd/routed/server.go @@ -13,7 +13,6 @@ import ( "git.xeserv.us/xena/route/internal/tun2" proto "git.xeserv.us/xena/route/proto" "github.com/Xe/ln" - "github.com/kr/pretty" "github.com/lucas-clemente/quic-go/h2quic" "github.com/mtneug/pkg/ulid" kcp "github.com/xtaci/kcp-go" @@ -164,8 +163,13 @@ func New(cfg Config) (*Server, error) { 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("", "") return s, nil