From 0fe1ba7352477d4d1760c8911ec0a606ae98526a Mon Sep 17 00:00:00 2001 From: Matin Kaboli Date: Wed, 18 Oct 2023 15:29:27 +0330 Subject: [PATCH] Documentation Mismatch for Logging after SorobanSDK Update #615 --- docs/basic-tutorials/errors.mdx | 2 +- docs/basic-tutorials/logging.mdx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/basic-tutorials/errors.mdx b/docs/basic-tutorials/errors.mdx index 6478d2cc..2bb2c2c5 100644 --- a/docs/basic-tutorials/errors.mdx +++ b/docs/basic-tutorials/errors.mdx @@ -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] diff --git a/docs/basic-tutorials/logging.mdx b/docs/basic-tutorials/logging.mdx index 779b623b..37a845f4 100644 --- a/docs/basic-tutorials/logging.mdx +++ b/docs/basic-tutorials/logging.mdx @@ -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")); } @@ -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.