This commit is contained in:
darth-veitcher
2025-11-05 12:30:51 +00:00
parent 9c9451b790
commit 617834840f
+6 -3
View File
@@ -374,9 +374,12 @@ class FormatString:
if template_type == "Simple":
try:
formatted_string = template.format(**kwargs)
logger.info(
f"Simple format successful, result length: {len(formatted_string)}"
)
if logger.level < logging.DEBUG:
logger.info(
f"Simple format successful, result length: {len(formatted_string)}"
)
elif logger.level == logging.DEBUG:
logger.debug(f"Simple format successful: {formatted_string}")
except KeyError as e:
error_msg = f"Missing variable in Simple template: {str(e)}"
logger.error(error_msg)