Skip to content

Commit adf0c33

Browse files
committed
make slipstream logs debug, get rid of noise for now
1 parent 2811e1a commit adf0c33

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

ledger/store/src/program/finalize.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ impl<N: Network, P: FinalizeStorage<N>> FinalizeStore<N, P> {
776776
block_height: u32,
777777
) {
778778

779-
tracing::info!(
779+
tracing::debug!(
780780
target: "slipstream",
781781
"notify_staking_reward(): is_finalize_mode={} staker={staker} validator={validator} reward={reward}",
782782
self.is_finalize_mode.load(Ordering::SeqCst)
@@ -927,7 +927,7 @@ impl<N: Network, P: FinalizeStorage<N>> FinalizeStoreTrait<N> for FinalizeStore<
927927
) -> Result<FinalizeOperation<N>> {
928928
// Serialize before moving, if a plugin notification may be needed.
929929
#[cfg(all(feature = "history", feature = "slipstream-plugins"))]
930-
tracing::info!(
930+
tracing::debug!(
931931
target: "slipstream",
932932
"update_key_value: is_finalize_mode={} program={program_id} mapping={mapping_name}",
933933
self.is_finalize_mode.load(Ordering::SeqCst)
@@ -968,7 +968,7 @@ impl<N: Network, P: FinalizeStorage<N>> FinalizeStoreTrait<N> for FinalizeStore<
968968
#[cfg(all(not(feature = "history"), feature = "slipstream-plugins"))]
969969
let height = 0u32;
970970
if let Some(mgr) = self.slipstream_plugin_manager.get() {
971-
tracing::info!(target: "slipstream", "dispatching notify_mapping_update to plugin manager");
971+
tracing::debug!(target: "slipstream", "dispatching notify_mapping_update to plugin manager");
972972
match mgr.read() {
973973
Ok(plugin_mgr) => plugin_mgr.notify_mapping_update(&pid, &mname, &k, &v, height),
974974
Err(e) => tracing::warn!(
@@ -1011,7 +1011,7 @@ impl<N: Network, P: FinalizeStorage<N>> FinalizeStore<N, P> {
10111011
entries: Vec<(Plaintext<N>, Value<N>)>,
10121012
) -> Result<FinalizeOperation<N>> {
10131013
#[cfg(all(feature = "history", feature = "slipstream-plugins"))]
1014-
tracing::info!(
1014+
tracing::debug!(
10151015
target: "slipstream",
10161016
"replace_mapping: is_finalize_mode={} program={program_id} mapping={mapping_name}",
10171017
self.is_finalize_mode.load(Ordering::SeqCst)

plugins/slipstream_plugin_manager/src/slipstream_manager.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ impl SlipstreamPluginManager {
9090
/// Check which plugins are interested in regular mapping data.
9191
pub fn history_mappings_enabled(&self) -> bool {
9292
for plugin in &self.plugins {
93-
tracing::info!("Inside history_mappings_enabled(), plugin is {{plugin.name()}}");
9493
if plugin.history_enabled() {
9594
return true;
9695
}
@@ -101,7 +100,6 @@ impl SlipstreamPluginManager {
101100
/// Check if there is any plugin interested in historical staking data.
102101
pub fn history_staking_rewards_enabled(&self) -> bool {
103102
for plugin in &self.plugins {
104-
tracing::info!("Inside history_staking_rewards_enabled(), plugin is {{plugin.name()}}");
105103
if plugin.history_staking_rewards_enabled() {
106104
return true;
107105
}
@@ -119,7 +117,7 @@ impl SlipstreamPluginManager {
119117
value: &[u8],
120118
block_height: u32,
121119
) {
122-
tracing::info!(
120+
tracing::debug!(
123121
target: "slipstream",
124122
"notify_mapping_update called: block_height={block_height} plugins={}",
125123
self.plugins.len()
@@ -143,7 +141,7 @@ impl SlipstreamPluginManager {
143141
new_stake: u64,
144142
block_height: u32,
145143
) {
146-
tracing::info!(
144+
tracing::debug!(
147145
target: "slipstream",
148146
"notify_staking_reward called: block_height={block_height} reward={reward} new_stake={new_stake} plugins={}",
149147
self.plugins.len()

0 commit comments

Comments
 (0)