mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-05 18:31:07 +00:00
Fix logging from inside the WASM runtime (#7355)
* Fix logging from inside the WASM runtime When using `RuntimeLogger` to log something from the runtime, we didn't set any logging level. So, we actually did not log anything from the runtime as logging is disabled by default. This pr fixes that by setting the logging level to `TRACE`. It also adds a test to ensure this does not break again ;) * Update frame/support/src/debug.rs
This commit is contained in:
1 parent
918a0c8077
commit
203acda659
5 files changed
+69
-2
No files matched your search
@@ -107,7 +107,9 @@ pub use crate::types::{
|
||||
/// Ignores any error. Useful for testing.
|
||||
#[cfg(feature = "std")]
|
||||
pub fn try_init_simple() {
|
||||
let _ = tracing_subscriber::fmt().with_writer(std::io::stderr).try_init();
|
||||
let _ = tracing_subscriber::fmt()
|
||||
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
||||
.with_writer(std::io::stderr).try_init();
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
|
||||
Reference in new issue
Block a user