Skip to content

Commit 17a7769

Browse files
committed
log from pymwemu?
1 parent 78a9d31 commit 17a7769

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pymwemu/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ pyo3 = "0.18.1"
1414
env_logger = "0.11.6"
1515
#libmwemu = { path = "../libmwemu" }
1616
libmwemu = "0.19.5"
17+
log = "0.4.22"

pymwemu/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ fn pymwemu(_py: Python, m: &PyModule) -> PyResult<()> {
851851
env_logger::Builder::from_env(Env::default().default_filter_or("info"))
852852
.format(|buf, record| writeln!(buf, "{}", record.args()))
853853
.init();
854+
log::info!("Initialized logging");
854855
m.add_function(wrap_pyfunction!(init32, m)?)?;
855856
m.add_function(wrap_pyfunction!(init64, m)?)?;
856857
Ok(())

0 commit comments

Comments
 (0)