fault/fm-common
Heitor Matsui f79b9a9748 Use alternate log handler if running in container
Currently the log is written to syslog, which in turn uses a
socket /dev/log from the platform, but when running in a container
such as in the stx-openstack application this log handler is not
available.

This commit uses an environment variable to be set on the
fm-rest-api deployment definition to determine if it must the syslog
handler, which is the case when running on the platform, or write the
log to standard output, which is the case when running inside a
container.

Closes-Bug: 1951579
Signed-off-by: Heitor Matsui <HeitorVieira.Matsui@windriver.com>
Change-Id: I3f2fe2953fb26ad1759f3bc10a358cb9d093192f
2021-11-19 10:07:36 -03:00
..
centos Reimplementation logic for trap generation 2020-12-08 18:37:50 -03:00
debian Merge "Fix lintian errors" 2021-11-09 14:09:59 +00:00
opensuse Delete _service files from git. 2019-09-30 13:27:21 -05:00
sources Use alternate log handler if running in container 2021-11-19 10:07:36 -03:00
.gitignore StarlingX open source release updates 2018-05-31 07:36:00 -07:00
PKG-INFO StarlingX open source release updates 2018-05-31 07:36:00 -07:00