fault/fm-common/sources
fperez 54d7e69213 Fixing logging for python scripts - FM
This commit changes the log when FmManager
calls fm_db_sync_event_suppression.py python script.

The logInfo function is not used anymore to write
on /var/log/platform.log. Instead, fm_log.py is used.
This solves the permissions issues between the python
script and platform.log

Besides, others possible fails are logged.

Test Plan:

PASS: Log on platform.log from the python script.
PASS: Log differents log levels.
PASS: Log arguments error.
PASS: Log database connection problems.
PASS: build and install rpm package

Closes-bug: 1932324

Signed-off-by: fperez <fabrizio.perez@windriver.com>
Change-Id: I07c6340e7e9b61fc0f8f8d62e5d5cd7565f265cd
2021-11-01 12:56:19 -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 CentOS 8: update fm-common to use python3 2021-08-16 18:04:39 -05: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-11-01 12:56:19 -03:00
fm_log.py Fixing logging for python scripts - FM 2021-11-01 12:56:19 -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