Skip to content

Commit 0e3761b

Browse files
authored
EPROD 582 fix logging issue after upgrade in all affected canisters (#74)
1 parent f74a5ee commit 0e3761b

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include = ["src/**/*", "LICENSE", "README.md"]
2525
license = "MIT"
2626
name = "bitfinity-evm-sdk"
2727
repository = "https://github.com/bitfinity-network/bitfinity-evm-sdk"
28-
version = "0.6.1"
28+
version = "0.6.2"
2929

3030
[workspace.dependencies]
3131
anyhow = "1.0"

src/evm-canister-client/src/client.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,19 @@ impl<C: CanisterClient> EvmCanisterClient<C> {
455455
.await
456456
}
457457

458+
/// Updates the runtime configuration of the logger with a new filter in the same form as the `RUST_LOG`
459+
/// environment variable.
460+
/// Example of valid filters:
461+
/// - info
462+
/// - debug,crate1::mod1=error,crate1::mod2,crate2=debug
463+
///
464+
/// # Arguments
465+
///
466+
/// * `filter` - The new filter.
467+
pub async fn set_logger_filter(&self, filter: &str) -> CanisterClientResult<Result<()>> {
468+
self.client.update("set_logger_filter", (filter,)).await
469+
}
470+
458471
/// Disable or enable the EVM. This function requires admin permissions.
459472
///
460473
/// # Arguments

0 commit comments

Comments
 (0)