From 29f9cdcbf2a899a06b82b6d9abf32e521d044506 Mon Sep 17 00:00:00 2001 From: Claudio Russo Date: Wed, 4 Dec 2024 10:19:15 +0000 Subject: [PATCH 1/2] Update doc on Debug.print to mention canister logs --- src/Debug.mo | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Debug.mo b/src/Debug.mo index 3e915f5c..9989f047 100644 --- a/src/Debug.mo +++ b/src/Debug.mo @@ -9,8 +9,9 @@ import Prim "mo:⛔"; module { /// Prints `text` to output stream. /// - /// NOTE: The output is placed in the replica log. When running on mainnet, - /// this function has no effect. + /// NOTE: When running on an ICP network, all output is written to the canister log with the exclusion of any output + /// produced during the execution of non-replicated queries and composite queries. + /// In other environments, like the interpreter and stand-alone wasm engines, the output is written to standard out. /// /// ```motoko include=import /// Debug.print "Hello New World!"; From 1beeac7eecbc29419c69bbfe2840b809fce260b7 Mon Sep 17 00:00:00 2001 From: Claudio Russo Date: Wed, 4 Dec 2024 10:21:27 +0000 Subject: [PATCH 2/2] Update src/Debug.mo --- src/Debug.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Debug.mo b/src/Debug.mo index 9989f047..c379d99e 100644 --- a/src/Debug.mo +++ b/src/Debug.mo @@ -9,7 +9,7 @@ import Prim "mo:⛔"; module { /// Prints `text` to output stream. /// - /// NOTE: When running on an ICP network, all output is written to the canister log with the exclusion of any output + /// NOTE: When running on an ICP network, all output is written to the [canister log](https://internetcomputer.org/docs/current/developer-docs/smart-contracts/maintain/logs) with the exclusion of any output /// produced during the execution of non-replicated queries and composite queries. /// In other environments, like the interpreter and stand-alone wasm engines, the output is written to standard out. ///