From d169699c4e02bb8d60e089b3d88736b8ed3ea49e Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Sat, 9 Nov 2024 10:01:11 +0800 Subject: [PATCH] PR feedback: use upper to make logging_level case-insensitive --- main.tf | 2 +- vars.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index cd6a288..7b0b4e6 100644 --- a/main.tf +++ b/main.tf @@ -116,7 +116,7 @@ locals { dynamo_secret_access_key = aws_iam_access_key.user_login_logger.secret enable_debug = var.enable_debug help_center_url = var.help_center_url - logging_level = var.logging_level + logging_level = upper(var.logging_level) memory = var.memory mysql_host = module.app.database_host mysql_database = local.mysql_database diff --git a/vars.tf b/vars.tf index f380826..dd556b1 100644 --- a/vars.tf +++ b/vars.tf @@ -107,7 +107,7 @@ variable "help_center_url" { } variable "logging_level" { - description = "Log level for log filter, may be one of: ERR, WARNING, NOTICE, INFO, DEBUG (case-sensitive)" + description = "Log level for log filter, may be one of: ERR, WARNING, NOTICE, INFO, DEBUG" type = string default = "NOTICE" }