chiark / gitweb /
config: Allow OTTER_LOG to (completely) override config
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 Jan 2021 16:45:06 +0000 (16:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 Jan 2021 18:38:28 +0000 (18:38 +0000)
commit14ee376d92a885fb2461eee83431f7b95a14180b
tree74681f7d9e7b768b1f061d522f7918cd45e65684
parentc0123e09d6651731c787a914c3946676f44497f8
config: Allow OTTER_LOG to (completely) override config

If the env var is supplied and results in a nonempty log spec, we
replace the log config completely.

This is quite a lot of faff because no-one likes to give us the right
interfaces.  In particular flexi_logger wants to give and receive
(byte) strings.

This is not the final state; we want to merge them, really.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/config.rs