mirror of
https://github.com/fluencelabs/aquavm
synced 2025-06-26 13:11:35 +00:00
fix(air): demote some AquaVM logging statements (#505)
Users complain that `warn` level produces lot of unnecessary logs. + join behavior logging is demoted to `trace`; + xor logging is demoted to `trace`; + service error logging is demoted to `debug`.
This commit is contained in:
@ -125,7 +125,7 @@ impl LastErrorAffectable for CatchableError {
|
|||||||
|
|
||||||
macro_rules! log_join {
|
macro_rules! log_join {
|
||||||
($($args:tt)*) => {
|
($($args:tt)*) => {
|
||||||
log::info!(target: air_log_targets::JOIN_BEHAVIOUR, $($args)*)
|
log::trace!(target: air_log_targets::JOIN_BEHAVIOUR, $($args)*)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ fn set_last_error<'i>(
|
|||||||
None => exec_ctx.run_parameters.current_peer_id.to_string(),
|
None => exec_ctx.run_parameters.current_peer_id.to_string(),
|
||||||
};
|
};
|
||||||
|
|
||||||
log::warn!(
|
log::debug!(
|
||||||
"call failed with an error `{}`, peerId `{}`",
|
"call failed with an error `{}`, peerId `{}`",
|
||||||
catchable_error,
|
catchable_error,
|
||||||
current_peer_id
|
current_peer_id
|
||||||
|
@ -49,5 +49,5 @@ fn print_xor_log(e: &ExecutionError) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
log::warn!("xor caught an error: {}", e);
|
log::trace!("xor caught an error: {}", e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user