Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Log Only Under STD
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Lau committed Sep 9, 2021
1 parent 687eab7 commit 47c5cbd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion frame/merkle-mountain-range/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
log = { version = "0.4.14" }
mmr-lib = { package = "ckb-merkle-mountain-range", default-features = false, version = "0.3.2" }

sp-core = { version = "4.0.0-dev", default-features = false, path = "../../primitives/core" }
Expand Down
4 changes: 2 additions & 2 deletions frame/merkle-mountain-range/src/mmr/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
//! A MMR storage implementations.

use codec::Encode;
use frame_support::log;
use mmr_lib::helper;
use sp_io::offchain_index;
#[cfg(not(feature = "std"))]
use sp_std::prelude::Vec;
use frame_support::if_std;

use crate::{
mmr::{Node, NodeOf},
Expand Down Expand Up @@ -122,7 +122,7 @@ where
let nodes_to_prune = diff(&peaks_after, &peaks_before);
let peaks_to_store = diff(&peaks_before, &peaks_after);

{
sp_std::if_std! {
log::trace!("elems: {:?}\n", elems);
log::trace!("peaks_before: {:?}", peaks_before);
log::trace!("peaks_after: {:?}", peaks_after);
Expand Down

0 comments on commit 47c5cbd

Please sign in to comment.