From a95aa63df07df913a5aae38d76c4e41550bb9e66 Mon Sep 17 00:00:00 2001 From: MadhukaHarith Date: Wed, 12 Jan 2022 12:41:51 +0530 Subject: [PATCH 1/2] Update mock function signatures in log tests --- examples/logging/tests/log_api_test.bal | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/logging/tests/log_api_test.bal b/examples/logging/tests/log_api_test.bal index 546465a4d3..499ba37219 100644 --- a/examples/logging/tests/log_api_test.bal +++ b/examples/logging/tests/log_api_test.bal @@ -14,7 +14,8 @@ string printWarn = ""; } test:MockFunction mock_printDebug = new(); -public function mockPrintDebug(string msg, error? err = (), *log:KeyValues keyValues) { +public function mockPrintDebug(string msg, error? err = (), +error:StackFrame[]? stackTrace = (), *KeyValues keyValues) { printDebug = msg; } @@ -24,7 +25,8 @@ public function mockPrintDebug(string msg, error? err = (), *log:KeyValues keyVa } test:MockFunction mock_printError = new(); -public function mockPrintError(string msg, error? err = (), *log:KeyValues keyValues) { +public function mockPrintError(string msg, error? err = (), +error:StackFrame[]? stackTrace = (), *KeyValues keyValues) { printError = msg; } @@ -34,7 +36,8 @@ public function mockPrintError(string msg, error? err = (), *log:KeyValues keyVa } test:MockFunction mock_printInfo = new(); -public function mockPrintInfo(string msg, error? err = (), *log:KeyValues keyValues) { +public function mockPrintInfo(string msg, error? err = (), +error:StackFrame[]? stackTrace = (), *KeyValues keyValues) { printInfo = msg; } @@ -44,7 +47,8 @@ public function mockPrintInfo(string msg, error? err = (), *log:KeyValues keyVal } test:MockFunction mock_printWarn = new(); -public function mockPrintWarn(string msg, error? err = (), *log:KeyValues keyValues) { +public function mockPrintWarn(string msg, error? err = (), +error:StackFrame[]? stackTrace = (), *KeyValues keyValues) { printWarn = msg; } From 16bfd4b8e28d579d56ae2dd60b4bc6fb25aca886 Mon Sep 17 00:00:00 2001 From: praneesha Date: Fri, 11 Aug 2023 06:54:53 +0530 Subject: [PATCH 2/2] Fixed numbered bullets in the DynamoDB BBE Fixed numbered bullets in the DynamoDB BBE --- .../aws-lambda-dynamodb-trigger.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/aws-lambda-dynamodb-trigger/aws-lambda-dynamodb-trigger.md b/examples/aws-lambda-dynamodb-trigger/aws-lambda-dynamodb-trigger.md index 5476a0687e..aaa7ff48fc 100644 --- a/examples/aws-lambda-dynamodb-trigger/aws-lambda-dynamodb-trigger.md +++ b/examples/aws-lambda-dynamodb-trigger/aws-lambda-dynamodb-trigger.md @@ -46,5 +46,5 @@ Follow the instructions below to create a DynamoDB table for invoking this funct 9. Click **Explore table items**, and click **Create items** under the **Items returned** section. 10. Enter a value under the **Attributes** section to add an entry to the DynamoDB table to invoke the Lambda function, and click **Create item**. 11. Click the **Monitor** tab of the Lambda function in the AWS Management Console, and click **View CloudWatch logs** to check the logs via CloudWatch. -11. Under **Log streams** in CloudWatch, click on the topmost stream in the list and verify the object name in the logs. -12. Go to the AWS Lambda function and check the logs via CloudWatch to see the object identifier in the logs. +12. Under **Log streams** in CloudWatch, click on the topmost stream in the list and verify the object name in the logs. +13. Go to the AWS Lambda function and check the logs via CloudWatch to see the object identifier in the logs.