diff --git a/deployment/horizon/horizon-container-puppet.yaml b/deployment/horizon/horizon-container-puppet.yaml index 33f4eb1af8..75d1277aa8 100644 --- a/deployment/horizon/horizon-container-puppet.yaml +++ b/deployment/horizon/horizon-container-puppet.yaml @@ -139,6 +139,14 @@ conditions: debug_unset: {equals : [{get_param: Debug}, '']} websso_enabled: {equals : [{get_param: WebSSOEnable}, True]} internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]} + horizon_logger_debug: + or: + - yaql: + expression: $.data.horizon_debug.matches("true|True|TRUE") + data: + horizon_debug: + get_param: HorizonDebug + - get_param: Debug resources: @@ -214,6 +222,10 @@ outputs: - debug_unset - horizon::django_debug: { get_param: HorizonDebug } - horizon::django_debug: { get_param: Debug } + - if: + - horizon_logger_debug + - horizon::log_level: 'DEBUG' + - {} ansible_group_vars: keystone_enable_member: true service_config_settings: diff --git a/releasenotes/notes/horizon_logger_debug-cd70c45c1b695e4b.yaml b/releasenotes/notes/horizon_logger_debug-cd70c45c1b695e4b.yaml new file mode 100644 index 0000000000..bb38b7b33d --- /dev/null +++ b/releasenotes/notes/horizon_logger_debug-cd70c45c1b695e4b.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + Previously, HorizonDebug and Debug parameters change the value of + horizon::django_debug. However, those parameters didn't set DEBUG + log level to horizon logger components. + By this change, if those are true, horizon::log_level is set to + 'DEBUG'.