dlog_logger: lazy poll only for Logger backend 57/285757/6
authorMichal Bloch <m.bloch@samsung.com>
Mon, 19 Dec 2022 17:06:32 +0000 (18:06 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Tue, 20 Dec 2022 16:39:05 +0000 (17:39 +0100)
commit5d63a0b7daa035e7f58b0bdac0acdcc659737cf9
tree5d0eaa836a0d27d608b478ecf1f405c4a2e0d1c1
parent8d697f065168edfa9dc9935677ea56c2b846e767
dlog_logger: lazy poll only for Logger backend

The delay makes sense for Android Logger because it only reads logs
from an "external" (from the daemon's PoV) storage so they aren't
going anywhere, and it's good not to waste resources trying to read
them at boot time.

Meanwhile for the Pipe backend it is important for the daemon to
actively listen to clients who might be trying to write logs, since
in that case the daemon is the storage (so logs need to be written
immediately, for example for crash report reasons) and also the
implementation requires it (since pipes otherwise get clogged).

Change-Id: I215438459c334698b4f3c195f6fce69ab7454f9c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/logger/logger.c
src/logger/logger_internal.h