From c933bda1020593e1c0cd2117447e0e11bdb3f766 Mon Sep 17 00:00:00 2001 From: Georgy Moshkin <gmoshkin@picodata.io> Date: Wed, 13 Mar 2024 14:59:23 +0300 Subject: [PATCH] feat: log to stderr before switching the logger configuration --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c97bc38427..46720c1ee0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -550,6 +550,9 @@ fn init_common( ) -> Result<(Clusterwide, RaftSpaceAccess), Error> { std::fs::create_dir_all(config.instance.data_dir()).unwrap(); + if let Some(log_config) = &cfg.log { + tlog!(Info, "switching to log configuration: {log_config}"); + } // See doc comments in tlog.rs for explanation. tlog::set_core_logger_is_initialized(true); -- GitLab