Unverified Commit c64d4f96 authored by Davide Galassi's avatar Davide Galassi Committed by GitHub
Browse files

Improve documentation of `debug_print` macro (#963)



* Improve documentation of `debug_print` macro

Debug message is not logged when a call is performed via an extrinsic

* Apply suggestions from code review
Co-authored-by: default avatarHernando Castano <HCastano@users.noreply.github.com>
Co-authored-by: default avatarHernando Castano <HCastano@users.noreply.github.com>
parent d333da45
Pipeline #162874 failed with stages
in 9 minutes and 15 seconds
......@@ -113,10 +113,12 @@ cfg_if::cfg_if! {
#[doc(hidden)]
pub use ink_prelude::format;
/// Appends a formatted string to the `debug_message` buffer which will be:
/// - Returned to the caller when the contract is invoked via RPC (*not* via an extrinsic)
/// - Logged as a `debug!` message on the substrate node, which will be printed to the node
/// console's `stdout` when the log level is set to `debug`.
/// Appends a formatted string to the `debug_message` buffer if message recording is
/// enabled in the contracts pallet and if the call is performed via RPC (**not** via an
/// extrinsic). The `debug_message` buffer will be:
/// - Returned to the RPC caller.
/// - Logged as a `debug!` message on the Substrate node, which will be printed to the
/// node console's `stdout` when the log level is set to `-lruntime::contracts=debug`.
///
/// # Note
///
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment