Browse Source

Merge "Set 'DEBUG' to horizon::log_level if HorizonDebug or Debug is true"

changes/07/742307/7
Zuul 4 days ago
committed by Gerrit Code Review
parent
commit
793bb2673e
2 changed files with 20 additions and 0 deletions
  1. +12
    -0
      deployment/horizon/horizon-container-puppet.yaml
  2. +8
    -0
      releasenotes/notes/horizon_logger_debug-cd70c45c1b695e4b.yaml

+ 12
- 0
deployment/horizon/horizon-container-puppet.yaml View File

@@ -153,6 +153,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:

@@ -228,6 +236,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}


+ 8
- 0
releasenotes/notes/horizon_logger_debug-cd70c45c1b695e4b.yaml View File

@@ -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'.

Loading…
Cancel
Save