We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a7db22 commit 81bddc4Copy full SHA for 81bddc4
python/src/lib.rs
@@ -8,7 +8,6 @@ use ::hdfs_native::{
8
Client,
9
};
10
use bytes::Bytes;
11
-use log::LevelFilter;
12
use pyo3::{exceptions::PyRuntimeError, prelude::*};
13
use tokio::runtime::Runtime;
14
@@ -172,9 +171,7 @@ impl RawClient {
172
171
#[pyo3(signature = (url))]
173
pub fn new(url: &str) -> PyResult<Self> {
174
// Initialize logging, ignore errors if this is called multiple times
175
- let _ = env_logger::Builder::new()
176
- .filter_level(LevelFilter::Off)
177
- .try_init();
+ let _ = env_logger::try_init();
178
179
Ok(RawClient {
180
inner: Client::new(url).map_err(PythonHdfsError::from)?,
0 commit comments