mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
log verbosity
git-svn-id: file:///svn/unbound/trunk@784 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b6d9b4bfcc
commit
16906c53e6
4 changed files with 10 additions and 6 deletions
|
|
@ -281,7 +281,8 @@ static void daemon_setup_modules(struct daemon* daemon)
|
||||||
daemon->env->worker = NULL;
|
daemon->env->worker = NULL;
|
||||||
daemon->env->need_to_validate = 0; /* set by module init below */
|
daemon->env->need_to_validate = 0; /* set by module init below */
|
||||||
for(i=0; i<daemon->num_modules; i++) {
|
for(i=0; i<daemon->num_modules; i++) {
|
||||||
log_info("init module %d: %s", i, daemon->modfunc[i]->name);
|
verbose(VERB_OPS, "init module %d: %s",
|
||||||
|
i, daemon->modfunc[i]->name);
|
||||||
log_assert(fptr_whitelist_mod_init(daemon->modfunc[i]->init));
|
log_assert(fptr_whitelist_mod_init(daemon->modfunc[i]->init));
|
||||||
if(!(*daemon->modfunc[i]->init)(daemon->env, i)) {
|
if(!(*daemon->modfunc[i]->init)(daemon->env, i)) {
|
||||||
fatal_exit("module init for module %s failed",
|
fatal_exit("module init for module %s failed",
|
||||||
|
|
@ -435,6 +436,7 @@ daemon_fork(struct daemon* daemon)
|
||||||
/* Start resolver service on main thread. */
|
/* Start resolver service on main thread. */
|
||||||
log_info("start of service (%s).", PACKAGE_STRING);
|
log_info("start of service (%s).", PACKAGE_STRING);
|
||||||
worker_work(daemon->workers[0]);
|
worker_work(daemon->workers[0]);
|
||||||
|
log_info("service stopped (%s).", PACKAGE_STRING);
|
||||||
|
|
||||||
/* we exited! a signal happened! Stop other threads */
|
/* we exited! a signal happened! Stop other threads */
|
||||||
daemon_stop_others(daemon);
|
daemon_stop_others(daemon);
|
||||||
|
|
|
||||||
|
|
@ -339,8 +339,8 @@ run_daemon(char* cfgfile, int cmdline_verbose, int debug_mode)
|
||||||
fatal_exit("alloc failure");
|
fatal_exit("alloc failure");
|
||||||
while(!daemon->need_to_exit) {
|
while(!daemon->need_to_exit) {
|
||||||
if(done_chroot)
|
if(done_chroot)
|
||||||
log_info("Restart of %s.", PACKAGE_STRING);
|
verbose(VERB_OPS, "Restart of %s.", PACKAGE_STRING);
|
||||||
else log_info("Start of %s.", PACKAGE_STRING);
|
else verbose(VERB_OPS, "Start of %s.", PACKAGE_STRING);
|
||||||
|
|
||||||
/* config stuff */
|
/* config stuff */
|
||||||
if(!(cfg = config_create()))
|
if(!(cfg = config_create()))
|
||||||
|
|
|
||||||
|
|
@ -993,10 +993,11 @@ worker_delete(struct worker* worker)
|
||||||
{
|
{
|
||||||
if(!worker)
|
if(!worker)
|
||||||
return;
|
return;
|
||||||
if(worker->env.mesh)
|
if(worker->env.mesh && verbosity >= VERB_OPS) {
|
||||||
mesh_stats(worker->env.mesh, "mesh has");
|
mesh_stats(worker->env.mesh, "mesh has");
|
||||||
server_stats_log(&worker->stats, worker->thread_num);
|
server_stats_log(&worker->stats, worker->thread_num);
|
||||||
worker_mem_report(worker, NULL);
|
worker_mem_report(worker, NULL);
|
||||||
|
}
|
||||||
mesh_delete(worker->env.mesh);
|
mesh_delete(worker->env.mesh);
|
||||||
ldns_buffer_free(worker->env.scratch_buffer);
|
ldns_buffer_free(worker->env.scratch_buffer);
|
||||||
listen_delete(worker->front);
|
listen_delete(worker->front);
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
- iterator normalizer changes CNAME chains ending in NXDOMAIN where
|
- iterator normalizer changes CNAME chains ending in NXDOMAIN where
|
||||||
the packet got rcode NXDOMAIN into rcode NOERROR. (since the initial
|
the packet got rcode NXDOMAIN into rcode NOERROR. (since the initial
|
||||||
domain exists).
|
domain exists).
|
||||||
|
- nicer verbosity: 0 and 1 levels.
|
||||||
|
|
||||||
27 November 2007: Wouter
|
27 November 2007: Wouter
|
||||||
- per suggestion in rfc2308, replaced default max-ttl value with 1 day.
|
- per suggestion in rfc2308, replaced default max-ttl value with 1 day.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue