forked from github/server
reduce log spam
This commit is contained in:
parent
8e4b9283a3
commit
f0a47321d6
2 changed files with 3 additions and 3 deletions
|
@ -526,7 +526,7 @@ static void disable_feature(const char *str) {
|
||||||
for (k = 0; k != MAXKEYWORDS; ++k) {
|
for (k = 0; k != MAXKEYWORDS; ++k) {
|
||||||
// FIXME: this loop is slow as balls.
|
// FIXME: this loop is slow as balls.
|
||||||
if (strcmp(keywords[k], str) == 0) {
|
if (strcmp(keywords[k], str) == 0) {
|
||||||
log_info("disable keyword %s\n", str);
|
log_debug("disable keyword %s\n", str);
|
||||||
enable_keyword(k, false);
|
enable_keyword(k, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -260,7 +260,7 @@ int findtoken(const void * root, const char *key, variant * result)
|
||||||
ref = ref->nexthash;
|
ref = ref->nexthash;
|
||||||
str += len;
|
str += len;
|
||||||
if (!ref) {
|
if (!ref) {
|
||||||
log_info("findtoken | token not found '%s'\n", key);
|
log_debug("findtoken | token not found '%s'\n", key);
|
||||||
return E_TOK_NOMATCH;
|
return E_TOK_NOMATCH;
|
||||||
}
|
}
|
||||||
tk = ref->node;
|
tk = ref->node;
|
||||||
|
@ -269,6 +269,6 @@ int findtoken(const void * root, const char *key, variant * result)
|
||||||
*result = tk->id;
|
*result = tk->id;
|
||||||
return E_TOK_SUCCESS;
|
return E_TOK_SUCCESS;
|
||||||
}
|
}
|
||||||
log_info("findtoken | token not found '%s'\n", key);
|
log_debug("findtoken | token not found '%s'\n", key);
|
||||||
return E_TOK_NOMATCH;
|
return E_TOK_NOMATCH;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue