fault/fm-common
fperez e9ba02ab5c Fixing logging for python scripts - FM
This commit complements the previous commit with
same topic:
https://review.opendev.org/c/starlingx/fault/+/815381

This particular commit improves the log inside the
python script, considering others possible fails.

Also, some verifications are added in fmDbUtils class
wich calls the script.

Test Plan:

Log in (/var/log/platform.log):
PASS: Log arguments error calling script.
PASS: Log new database connection problems.
PASS: Log Session commit problems.
PASS: Log problems opening "/etc/fm/events.yaml" file.

Log (in /var/log/fm-manager.log):
PASS: Log Problems opening fm_db_sync_event_suppression.py file.
PASS: Log problems running fm_db_sync_event_suppression.py.

PASS: build and install package.

Closes-bug: 1932324

Signed-off-by: fperez <fabrizio.perez@windriver.com>
Change-Id: I913d6d1282bea346f87f73179f0738c0c17d7446
2021-12-23 14:49:21 -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 Fixing logging for python scripts - FM 2021-12-23 14:49:21 -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