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:
amantri 2024-05-06 09:39:35 -04:00
parent ab5b79c106
commit f49374ecea
1 changed files with 1 additions and 1 deletions

View File

@ -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):