Skip to content

Commit 6e56c1d

Browse files
author
bwsw
committed
changed RUST_LOG to LOGLEVEL
1 parent 0ed7b7b commit 6e56c1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repository = "https://github.com/insight-platform/FFmpeg-Input"
77
readme = "README.md"
88
keywords = ["FFmpeg", "Video"]
99
categories = ["computer-vision"]
10-
version = "0.1.20"
10+
version = "0.1.21"
1111
edition = "2021"
1212
license="Apache-2.0"
1313
rust-version = "1.62"

Diff for: src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ impl FFMpegSource {
428428
#[pymodule]
429429
#[pyo3(name = "ffmpeg_input")]
430430
fn ffmpeg_input(_py: Python, m: &PyModule) -> PyResult<()> {
431-
_ = env_logger::try_init().map_err(|e| {
431+
_ = env_logger::try_init_from_env("LOGLEVEL").map_err(|e| {
432432
log::warn!("Unable to initialize logger. Error is: {:?}", e);
433433
});
434434
m.add_class::<VideoFrameEnvelope>()?;

0 commit comments

Comments
 (0)