Skip to content

Commit 411b3d3

Browse files
authored
fix: change logging level for warnings and above (#1226)
Update the logging levels to save on CloudWatch costs.
1 parent 9627d9f commit 411b3d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

terragrunt/aws/api/lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module "scan_files" {
2626
COMPLETED_SCANS_TABLE_NAME = "completed-scans"
2727
FILE_CHECKSUM_TABLE_NAME = "file-checksums"
2828
FILE_QUEUE_BUCKET = module.file-queue.s3_bucket_id
29-
LOG_LEVEL = "INFO"
29+
LOG_LEVEL = "WARNING"
3030
OPENAPI_URL = "/openapi.json"
3131
POWERTOOLS_SERVICE_NAME = "${var.product_name}-api"
3232
SCAN_QUEUE_STATEMACHINE_NAME = "assemblyline-file-scan-queue"

terragrunt/aws/s3_scan_object/lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module "s3_scan_object" {
1010
environment_variables = {
1111
AWS_MAX_ATTEMPTS = "5"
1212
AWS_RETRY_MODE = "standard"
13-
LOGGING_LEVEL = "info"
13+
LOGGING_LEVEL = "warn"
1414
SCAN_FILES_URL = var.scan_files_api_function_url
1515
SCAN_FILES_API_KEY_SECRET_ARN = var.scan_files_api_key_secret_arn
1616
SNS_SCAN_COMPLETE_TOPIC_ARN = aws_sns_topic.scan_complete.arn

0 commit comments

Comments
 (0)