diff --git a/doc/Changelog b/doc/Changelog index 041c10516..78af63b84 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 18 February 2019: Wouter - Print query name with ip_ratelimit exceeded log lines. + - Spaces instead of tabs in that log message. 14 February 2019: Wouter - Fix capsforid canonical sort qsort callback. diff --git a/services/cache/infra.c b/services/cache/infra.c index fa127e918..5ced2d5bb 100644 --- a/services/cache/infra.c +++ b/services/cache/infra.c @@ -1024,6 +1024,10 @@ int infra_ip_ratelimit_inc(struct infra_cache* infra, qnm, sizeof(qnm)); if(strlen(qnm)>0 && qnm[strlen(qnm)-1]=='\n') qnm[strlen(qnm)-1] = 0; /*remove newline*/ + if(strchr(qnm, '\t')) + *strchr(qnm, '\t') = ' '; + if(strchr(qnm, '\t')) + *strchr(qnm, '\t') = ' '; verbose(VERB_OPS, "ip_ratelimit exceeded %s %d %s", client_ip, infra_ip_ratelimit, qnm); } else {