Davis-Zhang-Onehouse commented on code in PR #570:
URL: https://github.com/apache/hudi-rs/pull/570#discussion_r3030188343
##########
cpp/src/lib.rs:
##########
@@ -23,6 +23,19 @@ use cxx::{CxxString, CxxVector};
use hudi::file_group::FileGroup;
use hudi::file_group::file_slice::FileSlice;
use hudi::file_group::reader::FileGroupReader;
+use std::sync::OnceLock;
+
+static LOGGER: OnceLock<()> = OnceLock::new();
+
+/// Initialize env_logger exactly once for the lifetime of the loaded shared
library.
+///
+/// Reads RUST_LOG from the environment at the time the first FileGroupReader
is created.
+/// Example: RUST_LOG=hudi_core=debug enables all hudi-core debug logs.
Review Comment:
sorry, all these PRs are still WIP, please ignore all PRs under my name.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]