Skip to content

Commit

Permalink
doc: update doc on Debug.print (#675)
Browse files Browse the repository at this point in the history
to mention canister logs

fixes issue #673
  • Loading branch information
crusso authored Dec 4, 2024
1 parent 2916a8e commit 12aeff2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Debug.mo
Original file line number Diff line number Diff line change
Expand Up @@ -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](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.
///
/// ```motoko include=import
/// Debug.print "Hello New World!";
Expand Down

0 comments on commit 12aeff2

Please sign in to comment.