From 7daa4eee32a7a2c1d06dc0c6fe2307def878e45a Mon Sep 17 00:00:00 2001 From: adonia Date: Mon, 4 Nov 2024 18:46:50 +0800 Subject: [PATCH] fix: add some logs if env is not found --- core/src/ten_utils/lib/sys/general/placeholder.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/ten_utils/lib/sys/general/placeholder.c b/core/src/ten_utils/lib/sys/general/placeholder.c index e3b8198df..27ede7af7 100644 --- a/core/src/ten_utils/lib/sys/general/placeholder.c +++ b/core/src/ten_utils/lib/sys/general/placeholder.c @@ -185,8 +185,14 @@ bool ten_placeholder_resolve(ten_placeholder_t *self, // Environment variable not found, use default value. if (!ten_value_is_valid(&self->default_value)) { // If no default value is provided, use 'null' value. + TEN_LOGI( + "Environment variable %s is not found, neither default value is " + "provided, set property to null.", + variable_name); ten_value_reset_to_null(placeholder_value); } else { + TEN_LOGI("Environment variable %s is not found, using default value.", + variable_name); const char *default_value = ten_value_peek_raw_str(&self->default_value); ten_value_reset_to_string_with_size(placeholder_value, default_value,