Fix value of syslog facility
According syslog specification to calculate Priority value
the Facility value should be multiplied by 8.
spec - https://tools.ietf.org/html/rfc5424#section-6.2.1
Change-Id: I11444ff78542a3a9f54848a26ffe71d32fdb1f49
Related-PROD: PROD-21310
diff --git a/keystone/files/logging.conf b/keystone/files/logging.conf
index 9bd6435..1afa222 100644
--- a/keystone/files/logging.conf
+++ b/keystone/files/logging.conf
@@ -55,7 +55,12 @@
{%- set ossyslog_args = values.logging.log_handlers.ossyslog.get('args', {}) -%}
[handler_ossyslog]
class = oslo_log.handlers.OSSysLogHandler
-args = ( handlers.SysLogHandler.{{ ossyslog_args.get('facility', 'LOG_USER') }}, )
+# the OSSysLogHandler uses 'syslog' lib, where the LOG_* facilities are already *8
+# but in the context where the args are evaluated we have access only to Python's
+# handlers.SysLogHandler.LOG_* constants that _ARE_NOT_ multiplied by 8.
+# To not have a completely magic single int in the rendered template,
+# we multiply it here.
+args = ( 8 * handlers.SysLogHandler.{{ ossyslog_args.get('facility', 'LOG_USER') }}, )
formatter = context
{%- endif %}