Add a new configuration option for GUI loggers
This allows us to set up logging for the TripleO GUI. By default, it enables the 'console' and 'zaqar' loggers. Change-Id: Iafc874643c29e63ff670831fe80f6601c3051865 Closes-Bug: #1716458
This commit is contained in:
parent
d5a23606ee
commit
5158c7ab16
@ -96,6 +96,10 @@
|
|||||||
# A string.
|
# A string.
|
||||||
# Defaults to 'tripleo'
|
# Defaults to 'tripleo'
|
||||||
#
|
#
|
||||||
|
# [*enabled_loggers*]
|
||||||
|
# List of enabled loggers
|
||||||
|
# Defaults to ['console', 'zaqar']
|
||||||
|
#
|
||||||
class tripleo::ui (
|
class tripleo::ui (
|
||||||
$servername = $::fqdn,
|
$servername = $::fqdn,
|
||||||
$bind_host = hiera('controller_host'),
|
$bind_host = hiera('controller_host'),
|
||||||
@ -116,6 +120,7 @@ class tripleo::ui (
|
|||||||
$endpoint_config_ironic_inspector = undef,
|
$endpoint_config_ironic_inspector = undef,
|
||||||
$endpoint_config_mistral = undef,
|
$endpoint_config_mistral = undef,
|
||||||
$endpoint_config_swift = undef,
|
$endpoint_config_swift = undef,
|
||||||
|
$enabled_loggers = ['console', 'zaqar'],
|
||||||
|
|
||||||
) {
|
) {
|
||||||
package {'openstack-tripleo-ui': }
|
package {'openstack-tripleo-ui': }
|
||||||
|
@ -22,7 +22,6 @@ window.tripleOUiConfig = {
|
|||||||
//
|
//
|
||||||
'excludedLanguages': <%= @excluded_languages.to_json %>,
|
'excludedLanguages': <%= @excluded_languages.to_json %>,
|
||||||
|
|
||||||
|
|
||||||
// Logging
|
// Logging
|
||||||
// 'loggers': ['console']
|
'loggers': <%= @enabled_loggers.to_json %>
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user