Move error for api validation to trace level (#1432)

* remove error on endpoint validation

* trace level
This commit is contained in:
Asim Aslam 2020-03-27 14:01:47 +00:00 committed by GitHub
parent b60fde0e64
commit 45ee5e9ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,8 +144,8 @@ func (r *registryRouter) store(services []*registry.Service) {
// if we got nothing skip
if err := api.Validate(end); err != nil {
if logger.V(logger.ErrorLevel, logger.DefaultLogger) {
logger.Errorf("endpoint validation failed: %v", err)
if logger.V(logger.TraceLevel, logger.DefaultLogger) {
logger.Tracef("endpoint validation failed: %v", err)
}
continue
}