diff --git a/auth/default.go b/auth/default.go index 358cf099..b9160a50 100644 --- a/auth/default.go +++ b/auth/default.go @@ -2,6 +2,7 @@ package auth import ( "github.com/google/uuid" + "github.com/micro/go-micro/v2/auth/provider/basic" ) var ( @@ -9,7 +10,17 @@ var ( ) func NewAuth(opts ...Option) Auth { - return &noop{} + options := Options{ + Provider: basic.NewProvider(), + } + + for _, o := range opts { + o(&options) + } + + return &noop{ + opts: options, + } } type noop struct { diff --git a/proxy/mucp/mucp.go b/proxy/mucp/mucp.go index da901c13..e7c69aa2 100644 --- a/proxy/mucp/mucp.go +++ b/proxy/mucp/mucp.go @@ -206,7 +206,7 @@ func (p *Proxy) cacheRoutes(service string) ([]router.Route, error) { results, err := p.Router.Lookup(router.QueryService(service)) if err != nil { // assumption that we're ok with stale routes - + logger.Debugf("Failed to lookup route for %s: %v", service, err) // otherwise return the error return nil, err }