Skip to content

Commit

Permalink
Add debug log for selected template name in yacfg.py
Browse files Browse the repository at this point in the history
Added a debug log to display the name of the selected template in the 'profiles.py' file. Previously, it only logged the selected profile path. The logging of the template name will enhance debugging, making it quicker and easier for developers to identify the template causing any issues.
  • Loading branch information
jiridanek committed Sep 15, 2023
1 parent dfa1264 commit 5df5f14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/yacfg/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def get_profile_template(profile_name: str) -> Template:
extensions = ["jinja2_ansible_filters.AnsibleCoreFiltersExtension"]

LOG.debug(f"Selected profile path: {selected_template_path}")
LOG.debug(f"Selected template name: {selected_template_name}")

try:
env = Environment(
Expand Down

0 comments on commit 5df5f14

Please sign in to comment.