Skip to content

Commit

Permalink
Remove unnecesary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Dec 23, 2024
1 parent d975df2 commit 2625dd3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions solo-chains/node/tanssi-relay-service/src/dev_rpcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,16 @@ impl DevApiServer for DevRpc {
}

async fn inject_upward_message(&self, msg: Vec<u8>) -> RpcResult<()> {
log::info!("RPC - Injecting upward message: {:?}", msg);

let upward_message_channel = self.upward_message_channel.clone();
// If no message is supplied, inject a default one.
let msg = if msg.is_empty() {
log::info!("RPC - message is empty");
// TODO: recheck this
xcm::VersionedXcm::<()>::V4(Xcm(vec![
ReserveAssetDeposited((Parent, 10000000000000u128).into()),
ClearOrigin,
]))
.encode()
} else {
log::info!("RPC - message is not empty");
msg
};

Expand Down
8 changes: 0 additions & 8 deletions solo-chains/node/tanssi-relay-service/src/dev_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,6 @@ where
parent: Hash,
keystore: KeystorePtr,
) -> Result<ParachainsInherentData, InherentError> {
log::info!("Executing create method");

let parent_header = match client.header(parent) {
Ok(Some(h)) => h,
Ok(None) => return Err(InherentError::ParentHeaderNotFound(parent)),
Expand Down Expand Up @@ -400,8 +398,6 @@ where

let mut upm_messages = UpwardMessages::new();

log::info!("Method create executed");

client
.get_aux(XMC_UPM_SELECTOR_AUX_KEY)
.expect("Should be able to query aux storage; qed")
Expand Down Expand Up @@ -739,8 +735,6 @@ fn new_full<
let upward_mock_receiver = upward_mock_receiver.clone();
let upward_message: Vec<Vec<u8>> = upward_mock_receiver.drain().collect();

log::info!("Upward message received {:?}", upward_message);

// If there is a value to be updated, we update it
if let Some(value) = para_inherent_decider_messages.last() {
client_clone
Expand All @@ -752,8 +746,6 @@ fn new_full<
}

if let Some(value) = upward_message.last() {
log::info!("Storing upm message in kvs");

client_clone
.insert_aux(
&[(XMC_UPM_SELECTOR_AUX_KEY, value.as_slice())],
Expand Down

0 comments on commit 2625dd3

Please sign in to comment.