Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Documentation Mismatch for Logging after SorobanSDK Update #615
Browse files Browse the repository at this point in the history
  • Loading branch information
matinkaboli committed Oct 18, 2023
1 parent 7506f2b commit 0fe1ba7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/basic-tutorials/errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ fn test() {
assert_eq!(client.try_increment(), Ok(Ok(5)));
assert_eq!(client.try_increment(), Err(Ok(Error::LimitReached)));

std::println!("{}", env.logger().all().join("\n"));
std::println!("{}", env.logs().all().join("\n"));
}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions docs/basic-tutorials/logging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ fn test() {

client.hello(&symbol_short!("Dev"));

let logs = env.logger().all();
let logs = env.logs().all();
assert_eq!(logs, std::vec!["Hello Symbol(Dev)"]);
std::println!("{}", logs.join("\n"));
}
Expand Down Expand Up @@ -222,7 +222,7 @@ let words = client.hello(&symbol_short!("Dev"));
Logs are available in tests via the environment.

```rust
let logs = env.logger().all();
let logs = env.logs().all();
```

They can asserted on like any other value.
Expand Down

0 comments on commit 0fe1ba7

Please sign in to comment.