Accept empty strings for log_dir
An empty string is an acceptable value of this entry, and it forces logging to stdout/stderr, which is useful when running on containers. Change-Id: I79d3df78d6c78dc767625d11c6c6e29192192da3
This commit is contained in:
parent
c83ef3a6db
commit
bc93062962
@ -112,7 +112,11 @@ class aodh::logging(
|
||||
$use_syslog_real = pick($::aodh::use_syslog,$use_syslog)
|
||||
$use_stderr_real = pick($::aodh::use_stderr,$use_stderr)
|
||||
$log_facility_real = pick($::aodh::log_facility,$log_facility)
|
||||
if $log_dir != '' {
|
||||
$log_dir_real = pick($::aodh::log_dir,$log_dir)
|
||||
} else {
|
||||
$log_dir_real = $log_dir
|
||||
}
|
||||
$debug_real = pick($::aodh::debug,$debug)
|
||||
|
||||
oslo::log { 'aodh_config':
|
||||
|
Loading…
Reference in New Issue
Block a user