libdlog: isolate limiter creation 95/185795/3
authorMichal Bloch <m.bloch@samsung.com>
Wed, 1 Aug 2018 17:17:50 +0000 (19:17 +0200)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 21 Aug 2018 02:49:38 +0000 (02:49 +0000)
commit3e1c46fab39b36b284c0de85639b43d26c735e93
treee75beb9b61f9c2012a043b581e04ac948e0661de
parent52290052f8c1ee59cf7ee5621038c37fcf3c03f3
libdlog: isolate limiter creation

Limiter no longer checks whether it is enabled on construction,
it is now the caller's responsibility. This allows to construct
limiter with a limited config (for example containing just the
ruleset) and possibly to add extra rules between deciding to use
the limiter and actually creating it (so that the extras needn't
be loaded if opting out of the feature).

Change-Id: I8e6a4ad06c782f17e47cd5e90a73a150cf327eb3
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
include/loglimiter.h
src/libdlog/log.c
src/libdlog/loglimiter.c