diff rust/hg-cpython/src/dirstate.rs @ 45517:2a68a5ec8dd0

rust-cpython: switch logging facade from `simple_logger` to `env_logger` `simple_logger` is just too simple. `env_logger` supports logging to `stderr`, and logging filtering, for example, which are becoming necessary now. The project is nicely active. Differential Revision: https://phab.mercurial-scm.org/D8990
author Rapha?l Gom?s <rgomes@octobus.net>
date Sun, 06 Sep 2020 10:33:12 +0200
parents 01afda7e7d6c
children 776b97179c06
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate.rs	Tue Sep 22 09:06:09 2020 -0400
+++ b/rust/hg-cpython/src/dirstate.rs	Sun Sep 06 10:33:12 2020 +0200
@@ -107,7 +107,7 @@
     let dotted_name = &format!("{}.dirstate", package);
     let m = PyModule::new(py, dotted_name)?;
 
-    simple_logger::init_by_env();
+    env_logger::init();
 
     m.add(py, "__package__", package)?;
     m.add(py, "__doc__", "Dirstate - Rust implementation")?;