Browse Source

init_by_env should be public

Kaiyin Zhong 5 years ago
parent
commit
ffb11dd2d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -141,7 +141,7 @@ pub fn init() -> Result<(), SetLoggerError> {
 /// warn!("This is an example message.");
 /// # }
 /// ```
-fn init_by_env() {
+pub fn init_by_env() {
     match std::env::var("RUST_LOG") {
         Ok(x) => {
             match x.to_lowercase().as_str() {