Skip to content

Commit ce098d0

Browse files
committed
Temp extra logging
1 parent b3d91e8 commit ce098d0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

infrastructure/terraform/components/api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ No requirements.
3737
| <a name="input_project"></a> [project](#input\_project) | The name of the tfscaffold project | `string` | n/a | yes |
3838
| <a name="input_region"></a> [region](#input\_region) | The AWS Region | `string` | n/a | yes |
3939
| <a name="input_shared_infra_account_id"></a> [shared\_infra\_account\_id](#input\_shared\_infra\_account\_id) | The AWS Account ID of the shared infrastructure account | `string` | `"000000000000"` | no |
40-
| <a name="input_sns_success_logging_sample_percent"></a> [sns\_success\_logging\_sample\_percent](#input\_sns\_success\_logging\_sample\_percent) | Enable SNS Delivery Successful Sample Percentage | `number` | `100` | no |
40+
| <a name="input_sns_success_logging_sample_percent"></a> [sns\_success\_logging\_sample\_percent](#input\_sns\_success\_logging\_sample\_percent) | Enable SNS Delivery Successful Sample Percentage | `number` | `0` | no |
4141
## Modules
4242

4343
| Name | Source | Version |

infrastructure/terraform/components/api/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ variable "enable_sns_delivery_logging" {
179179
variable "sns_success_logging_sample_percent" {
180180
type = number
181181
description = "Enable SNS Delivery Successful Sample Percentage"
182-
default = 100
182+
default = 0
183183
}
184184

185185
variable "enable_api_data_trace" {

lambdas/upsert-letter/src/handler/upsert-handler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ function resolveSupplierForVariant(
109109
return deps.env.VARIANT_MAP[variantId];
110110
}
111111

112-
function parseSNSNotification(record: SQSRecord) {
112+
function parseSNSNotification(record: SQSRecord, deps: Deps) {
113113
const notification = JSON.parse(record.body) as Partial<SNSMessage>;
114+
deps.logger.info({ topicArn: notification.TopicArn });
114115
if (
115116
notification.Type !== "Notification" ||
116117
typeof notification.Message !== "string"

0 commit comments

Comments
 (0)