Skip to content
Snippets Groups Projects
Commit 77cb6f62 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Yet another log messages cleanup

parent e2c4b960
No related branches found
No related tags found
1 merge request!260Consistent error strings logging
......@@ -286,7 +286,7 @@ static void rrl_log_state(const struct sockaddr_storage *ss, uint16_t flags, uin
what = "enters";
}
log_notice("rate-limiting, address '%s' class '%s' %s limiting",
log_notice("rate limiting, address '%s' class '%s' %s limiting",
addr_str, rrl_clsstr(cls), what);
#endif
}
......
......@@ -536,9 +536,9 @@ static int reconfigure_rate_limits(const struct conf_t *conf, server_t *server)
/* We cannot free it, threads may use it.
* Setting it to <1 will disable rate limiting. */
if (conf->rrl < 1) {
log_info("rate limiting disabled");
log_info("rate limiting, disabled");
} else {
log_info("rate limiting enabled, %u responses/sec",
log_info("rate limiting, enabled %u responses/second",
conf->rrl);
}
rrl_setrate(server->rrl, conf->rrl);
......
......@@ -99,7 +99,7 @@ static inline void udp_pps_sample(unsigned n, unsigned thr_id)
unsigned pps = __pps_rx;
memcpy(&__pps_t0, &__pps_t1, sizeof(struct timeval));
__pps_rx = 0;
log_server_info("RX rate %u packets/s", pps);
log_server_info("RX rate %u packets/second", pps);
}
}
}
......
......@@ -47,7 +47,7 @@ void process_error(zs_scanner_t *s)
zcreator_t *zc = s->data;
const knot_dname_t *zname = zc->z->apex->owner;
ERROR(zname, "%s in zone, file %s, line %"PRIu64" (%s)",
ERROR(zname, "%s in zone, file '%s', line %"PRIu64" (%s)",
s->stop ? "fatal error" : "error",
s->file.name, s->line_counter,
zs_strerror(s->error_code));
......@@ -306,7 +306,7 @@ zone_contents_t *zonefile_load(zloader_t *loader)
zone_do_sem_checks(zc->z, check_level,
&err_handler, first_nsec3_node,
last_nsec3_node);
INFO(zname, "semantic checks completed");
INFO(zname, "semantic check, completed");
}
return zc->z;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment