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
2021-11-24 10:43:53 -05:00
2019-04-19 19:52:34 +00:00
2021-09-01 08:58:34 -04:00
2018-05-31 07:36:00 -07:00
2021-09-27 12:53:01 -04:00

fault

StarlingX Fault Management

Description
StarlingX Fault Management
Readme 5.8 MiB
Languages
Python 60.9%
C++ 31.7%
Shell 3.1%
C 3.1%
Makefile 1.1%