Make parameter validation less noisy.

This commit is contained in:
Joris Vink 2015-04-27 15:35:02 +02:00
parent 99922d9468
commit e5f6d37cd2
1 changed files with 1 additions and 7 deletions

View File

@ -1095,11 +1095,7 @@ http_argument_add(struct http_request *req, const char *name,
len = strlen(value);
}
if (!kore_validator_check(req, p->validator, value)) {
kore_log(LOG_NOTICE,
"validator %s (%s) for %s failed",
p->validator->name, p->name, req->path);
} else {
if (kore_validator_check(req, p->validator, value)) {
q = kore_malloc(sizeof(struct http_arg));
q->len = len;
q->s_value = NULL;
@ -1112,8 +1108,6 @@ http_argument_add(struct http_request *req, const char *name,
return;
}
}
kore_log(LOG_NOTICE, "unexpected parameter %s for %s", name, req->path);
}
static void