Move error for api validation to trace level (#1432)
* remove error on endpoint validation * trace level
This commit is contained in:
parent
b60fde0e64
commit
45ee5e9ad1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user