Commit d231fa5a authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Add logging option of cache stats on child exit

parent 01f4db80
......@@ -336,9 +336,12 @@ sub child_init_hook
sub child_finish_hook {
my $self = shift;
my $server = $self->{'server'};
my $log_cache = defined($self->{'config'}{'logging'}{'cache'});
$self->SUPER::child_finish_hook();
$self->log(LOG_DEBUG,"[CBPOLICYD] Caching engine: hits = ".cbp::cache:getHitRatio().", misses = ".
cbp::cache:getMissRatio()) if ($log_cache);
$self->log(LOG_DEBUG,"[CBPOLICYD] Shutting down caching engine ($$)");
cbp::cache::disconnect($self);
}
......
......@@ -75,6 +75,7 @@ EOT
# policies - Log policy resolution
# protocols - Log general protocol info, but detailed
# bizanga - Log the bizanga protocol
# cache - Log cache usage on client shutdown
#
# There is no default for this configuration option. Options can be
# separated by commas. ie. protocols,modules
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment