Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Set 'DEBUG' to horizon::log_level if HorizonDebug or Debug is …
Browse files Browse the repository at this point in the history
…true" into stable/ussuri
  • Loading branch information
Zuul authored and openstack-gerrit committed Mar 11, 2021
2 parents 87415f4 + 0502fb1 commit 9e3af44
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deployment/horizon/horizon-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ conditions:
equals:
- {get_param: [ServiceData, net_ip_version_map, {get_param: [ServiceNetMap, HorizonNetwork]}]}
- 6
horizon_logger_debug:
or:
- yaql:
expression: $.data.horizon_debug.matches("true|True|TRUE")
data:
horizon_debug:
get_param: HorizonDebug
- get_param: Debug

resources:

Expand Down Expand Up @@ -233,6 +241,10 @@ outputs:
- debug_unset
- horizon::django_debug: { get_param: HorizonDebug }
- horizon::django_debug: { get_param: Debug }
- if:
- horizon_logger_debug
- horizon::log_level: 'DEBUG'
- {}
- if:
- horizon_domain_choices_set
- horizon::keystone_domain_choices: {get_param: HorizonDomainChoices}
Expand Down
8 changes: 8 additions & 0 deletions releasenotes/notes/horizon_logger_debug-cd70c45c1b695e4b.yaml
Original file line number Diff line number Diff line change
@@ -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'.

0 comments on commit 9e3af44

Please sign in to comment.