fault/fm-common/sources
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
..
LICENSE StarlingX open source release updates 2018-05-31 07:36:00 -07:00
Makefile Fixing logging for python scripts - FM 2021-11-01 12:56:19 -03:00
fmAPI.cpp Fix indentation and style issues in fmAPI 2019-08-22 10:53:15 -05:00
fmAPI.h Fix indentation and style issues in fmAPI 2019-08-22 10:53:15 -05:00
fmAlarm.h StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmAlarmUtils.cpp Fix indentation and style issues in fmAlarmUtils 2019-09-17 00:22:37 -05:00
fmAlarmUtils.h Fix indentation and style issues in fmAlarmUtils 2019-09-17 00:22:37 -05:00
fmConfig.cpp Update FM Manager old net-snmp related code 2020-12-17 10:03:38 -03:00
fmConfig.h Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
fmConstants.h Reimplementation logic for trap generation 2020-12-08 18:37:50 -03:00
fmDb.cpp Fix clear_fault/clear_all in FaultAPIsV2 raise exception when alarm is 2019-04-01 01:31:49 +08:00
fmDb.h Fix clear_fault/clear_all in FaultAPIsV2 raise exception when alarm is 2019-04-01 01:31:49 +08:00
fmDbAPI.h StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmDbAlarm.cpp Fix clear_fault/clear_all in FaultAPIsV2 raise exception when alarm is 2019-04-01 01:31:49 +08:00
fmDbAlarm.h Fix clear_fault/clear_all in FaultAPIsV2 raise exception when alarm is 2019-04-01 01:31:49 +08:00
fmDbEventLog.cpp replace strncpy by snprintf 2018-11-03 00:56:57 +08:00
fmDbEventLog.h Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
fmDbUtils.cpp Fixing logging for python scripts - FM 2021-12-23 14:49:21 -03:00
fmDbUtils.h Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
fmEventSuppression.cpp Fix clear_fault/clear_all in FaultAPIsV2 raise exception when alarm is 2019-04-01 01:31:49 +08:00
fmEventSuppression.h Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
fmFile.cpp StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmFile.h StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmLog.cpp Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
fmLog.h Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
fmMsg.h StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmMsgServer.cpp Fix clear_fault/clear_all in FaultAPIsV2 raise exception when alarm is 2019-04-01 01:31:49 +08:00
fmMsgServer.h StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmMutex.cpp StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmMutex.h StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmSnmpConstants.h Update FM Manager old net-snmp related code 2020-12-17 10:03:38 -03:00
fmSnmpUtils.cpp Update FM Manager old net-snmp related code 2020-12-17 10:03:38 -03:00
fmSnmpUtils.h Update FM Manager old net-snmp related code 2020-12-17 10:03:38 -03:00
fmSocket.cpp StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmSocket.h StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmThread.cpp StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmThread.h StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fmTime.cpp Fix zuul jobs broken due to pip upversion 2020-12-18 08:41:07 -06:00
fmTime.h StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fm_cli.cpp Fix indentation and style issues in fm_cli 2019-09-16 23:35:47 -05:00
fm_db_sync_event_suppression.py Fixing logging for python scripts - FM 2021-12-23 14:49:21 -03:00
fm_log.py Use alternate log handler if running in container 2021-11-19 10:07:36 -03:00
fm_python_mod_main.cpp Fix python3.9 building 2021-09-21 17:37:48 +00:00
requirements.txt Use DevStack's setup_*() functions for Python packages 2019-05-17 13:11:58 -05:00
setup.cfg Use DevStack's setup_*() functions for Python packages 2019-05-17 13:11:58 -05:00
setup.py Add hooks for python wheel generation 2018-10-24 17:12:50 +00:00