]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: LogClient: allow specifying facility for LogClient
authorJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 16 Jul 2014 17:14:18 +0000 (18:14 +0100)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 27 Aug 2014 18:01:54 +0000 (19:01 +0100)
commit7ef1273a519636aa008e84d828ad90d5cdaf5d46
treeb6789843f6b1ecdadf550d5ef4b32b3ac87a553d
parent688582494af78765eacec491aca97f4e7ab75ec3
common: LogClient: allow specifying facility for LogClient

Instead of allowing only one LogClient, we will now allow any daemon to
have any number of LogClients.  They may either all log to the default
facility and level, or they may see their facility and level specified
upon creation (via a new constructor).

This patch also changes 'handle_log_ack' in such a way that the LogClient
will handle all acks with bearing the LogClient's facility, or will
otherwise simply ignore them.  The function will return true whenever the
message has been handled or false if that was not the case.  It will fall
on the caller the responsibility of deciding whether the message will be
passed to other LogClients or not, and when it is to be release.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/common/LogClient.cc
src/common/LogClient.h