Skip to content

Commit 585b852

Browse files
committed
fix: Updated format of log level values.
1 parent 6a94762 commit 585b852

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tofu/config/service/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ variable "key_recovery_period" {
8383
variable "log_level" {
8484
type = string
8585
description = "Log level for all containers."
86-
default = "info"
86+
default = "INFO"
8787

8888
validation {
89-
condition = contains(["debug", "info", "warning", "error", "critical"], var.log_level)
90-
error_message = "Valid log levels are: debug, info, warning, error, critical."
89+
condition = contains(["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], var.log_level)
90+
error_message = "Valid log levels are: DEBUG, INFO, WARNING, ERROR, CRITICAL."
9191
}
9292
}
9393

tofu/modules/system/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ variable "logging_bucket" {
132132
variable "log_level" {
133133
type = string
134134
description = "Log level for all containers."
135-
default = "info"
135+
default = "INFO"
136136

137137
validation {
138-
condition = contains(["debug", "info", "warning", "error", "critical"], var.log_level)
139-
error_message = "Valid log levels are: debug, info, warning, error, critical."
138+
condition = contains(["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], var.log_level)
139+
error_message = "Valid log levels are: DEBUG, INFO, WARNING, ERROR, CRITICAL."
140140
}
141141
}
142142

0 commit comments

Comments
 (0)