openstack-helm/mistral
Pavlo Shchelokovskyy 55645c7e73 Explicitly set datefmt for logging
the defaults in Python [0] and oslo.log [1] are such that when using
separate config file for logging configuration (log-config-append)
the log fomat of dates containes miliseconds twice (as in sec,ms.ms)
which is exactly what is currently seen in logs of OpenStack services
deployed by openstack-helm.

When not provided with datefmt log formatter option, Python effectively
uses '%Y-%m-%d %H:%M:%S,%f' [0] as a default time formatting string to
render `%(asctime)s`, but the defaults in oslo.log add another `.%f`
to it [1].

Since `log-date-format` oslo.log option has no effect when using
log-config-append, we need to explicitly set date format to avoid double
miliseconds rendering in date of log entries.

[0] 6ee41793d2/Lib/logging/__init__.py (L427-L428)
[1] http://git.openstack.org/cgit/openstack/oslo.log/tree/oslo_log/_options.py?id=7c5f8362b26313217b6c248e77be3dc8e2ef74a5#n148

Change-Id: I47aa7ce96770d94b905b56d6fe4abad428f01047
2019-02-21 08:28:35 +00:00
..
templates Add release-uuid annotation to pod spec 2019-02-12 12:31:59 -06:00
Chart.yaml Revert "Update OSH Author copyrights to OSF" 2018-08-28 17:25:13 +00:00
requirements.yaml Revert "Update OSH Author copyrights to OSF" 2018-08-28 17:25:13 +00:00
values.yaml Explicitly set datefmt for logging 2019-02-21 08:28:35 +00:00