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 Vasiliy Tolstov
parent c580879955
commit d5927581d2

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
}