Merge "logging: Deprecate watch_log_file"
This commit is contained in:
commit
730a6dbd28
@ -38,10 +38,6 @@
|
|||||||
# (Optional) File where logs should be stored.
|
# (Optional) File where logs should be stored.
|
||||||
# Defaults to $facts['os_service_default']
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*watch_log_file*]
|
|
||||||
# (Optional) Uses logging handler designed to watch file system (boolean value).
|
|
||||||
# Defaults to $facts['os_service_default']
|
|
||||||
#
|
|
||||||
# [*logging_context_format_string*]
|
# [*logging_context_format_string*]
|
||||||
# (Optional) Format string to use for log messages with context.
|
# (Optional) Format string to use for log messages with context.
|
||||||
# Defaults to $facts['os_service_default']
|
# Defaults to $facts['os_service_default']
|
||||||
@ -102,6 +98,12 @@
|
|||||||
# Defaults to $facts['os_service_default']
|
# Defaults to $facts['os_service_default']
|
||||||
# Example: 'Y-%m-%d %H:%M:%S'
|
# Example: 'Y-%m-%d %H:%M:%S'
|
||||||
#
|
#
|
||||||
|
# DEPRECATED PARAMETERS
|
||||||
|
#
|
||||||
|
# [*watch_log_file*]
|
||||||
|
# (Optional) Uses logging handler designed to watch file system (boolean value).
|
||||||
|
# Defaults to undef
|
||||||
|
#
|
||||||
class mistral::logging(
|
class mistral::logging(
|
||||||
$use_syslog = $facts['os_service_default'],
|
$use_syslog = $facts['os_service_default'],
|
||||||
$use_json = $facts['os_service_default'],
|
$use_json = $facts['os_service_default'],
|
||||||
@ -110,7 +112,6 @@ class mistral::logging(
|
|||||||
$log_facility = $facts['os_service_default'],
|
$log_facility = $facts['os_service_default'],
|
||||||
$log_dir = '/var/log/mistral',
|
$log_dir = '/var/log/mistral',
|
||||||
$log_file = $facts['os_service_default'],
|
$log_file = $facts['os_service_default'],
|
||||||
$watch_log_file = $facts['os_service_default'],
|
|
||||||
$debug = $facts['os_service_default'],
|
$debug = $facts['os_service_default'],
|
||||||
$logging_context_format_string = $facts['os_service_default'],
|
$logging_context_format_string = $facts['os_service_default'],
|
||||||
$logging_default_format_string = $facts['os_service_default'],
|
$logging_default_format_string = $facts['os_service_default'],
|
||||||
@ -123,6 +124,8 @@ class mistral::logging(
|
|||||||
$instance_format = $facts['os_service_default'],
|
$instance_format = $facts['os_service_default'],
|
||||||
$instance_uuid_format = $facts['os_service_default'],
|
$instance_uuid_format = $facts['os_service_default'],
|
||||||
$log_date_format = $facts['os_service_default'],
|
$log_date_format = $facts['os_service_default'],
|
||||||
|
# DEPRECATED PARAMETERS
|
||||||
|
$watch_log_file = undef,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include mistral::deps
|
include mistral::deps
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
The ``mistral::logging::watch_log_file`` parameter has been deprecated.
|
@ -67,7 +67,6 @@ describe 'mistral::logging' do
|
|||||||
:syslog_log_facility => '<SERVICE DEFAULT>',
|
:syslog_log_facility => '<SERVICE DEFAULT>',
|
||||||
:log_dir => '/var/log/mistral',
|
:log_dir => '/var/log/mistral',
|
||||||
:log_file => '<SERVICE DEFAULT>',
|
:log_file => '<SERVICE DEFAULT>',
|
||||||
:watch_log_file => '<SERVICE DEFAULT>',
|
|
||||||
:debug => '<SERVICE DEFAULT>',
|
:debug => '<SERVICE DEFAULT>',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user