Skip to content

Commit cb799f8

Browse files
Apply suggestions from code review
1 parent 9d24fde commit cb799f8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

motoko/canister_logs/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Expect to see logs from timer traps.
4343

4444
```shell
4545
# Terminal B
46-
dfx canister logs CanisterLogs
46+
$ dfx canister logs CanisterLogs
4747
[0. 2024-05-23T08:32:26.203980235Z]: right before timer trap
4848
[1. 2024-05-23T08:32:26.203980235Z]: [TRAP]: timer trap
4949
[2. 2024-05-23T08:32:31.836721763Z]: right before timer trap
@@ -54,11 +54,11 @@ dfx canister logs CanisterLogs
5454

5555
```shell
5656
# Terminal B
57-
dfx canister call CanisterLogs print hi
57+
$ dfx canister call CanisterLogs print hi
5858
()
5959

6060
# Expect to see new log entry.
61-
dfx canister logs CanisterLogs
61+
$ dfx canister logs CanisterLogs
6262
...
6363
[8. 2024-05-23T08:32:46.598972616Z]: right before timer trap
6464
[9. 2024-05-23T08:32:46.598972616Z]: [TRAP]: timer trap
@@ -88,21 +88,21 @@ $ ./poll_logs.sh
8888

8989
```shell
9090
# Terminal B
91-
dfx canister call CanisterLogs print hi!
91+
$ dfx canister call CanisterLogs print hi!
9292
()
9393

94-
dfx canister call CanisterLogs print hello!
94+
$ dfx canister call CanisterLogs print hello!
9595
()
9696

97-
dfx canister call CanisterLogs print yey!
97+
$ dfx canister call CanisterLogs print yey!
9898
()
9999

100-
dfx canister call CanisterLogs trap oops!
100+
$ dfx canister call CanisterLogs trap oops!
101101
Error: Failed update call.
102102
Caused by: Failed update call.
103103
The replica returned a rejection error: reject code CanisterError, reject message Canister bkyz2-fmaaa-aaaaa-qaaaq-cai trapped explicitly: oops!, error code None
104104

105-
dfx canister call CanisterLogs memory_oob
105+
$ dfx canister call CanisterLogs memory_oob
106106
Error: Failed update call.
107107
Caused by: Failed update call.
108108
The replica returned a rejection error: reject code CanisterError, reject message Canister bkyz2-fmaaa-aaaaa-qaaaq-cai trapped explicitly: StableMemory range out of bounds, error code None

0 commit comments

Comments
 (0)