Change certificate snapshot to debug logging
When user executes "system health-query" commands, it logs the full certificate snapshot to sysinv.log, this is happening because the CertAlarmAudit is imported to health.py module to check for any expiry/expired alarms before upgrade activity. This fix addresses this issue by changing the "info" log to "debug". Test Cases: PASS: Run "system health-query", "system health-query-kube-upg rade" , "system health-query-upgrade" and verify that cert snapshot is logging only in the debug mode. Closes-bug: 2064925 Change-Id: Ia0482a557931afdef89a6fa88017ea488a6dca59 Signed-off-by: amantri <ayyappa.mantri@windriver.com>
This commit is contained in:
parent
ab5b79c106
commit
f49374ecea
|
@ -319,7 +319,7 @@ def reset_cert_snapshot():
|
|||
|
||||
|
||||
def print_cert_snapshot():
|
||||
LOG.info('Cert snapshot = %s' % CERT_SNAPSHOT)
|
||||
LOG.debug('Cert snapshot = %s' % CERT_SNAPSHOT)
|
||||
|
||||
|
||||
def add_cert_snapshot(certname, expirydate, annotation_data, mode_metadata):
|
||||
|
|
Loading…
Reference in New Issue