Log cms_verify issues as warnings (not errors).
In general we probably do want to log these types of errors... but not as ERRORS. I think log Warning messages are probably more appropriate here since it would be possible to hit this when expired certs are refreshed... Fixes LP Bug #1190230. Change-Id: I0383f7e490ddcdfb31a62cd3760102152a8d16d9
This commit is contained in:
@@ -41,7 +41,7 @@ def cms_verify(formatted, signing_cert_file_name, ca_file_name):
|
||||
output, err = process.communicate(formatted)
|
||||
retcode = process.poll()
|
||||
if retcode:
|
||||
LOG.error('Verify error: %s' % err)
|
||||
LOG.warning('Verify error: %s' % err)
|
||||
# NOTE(dmllr): Python 2.6 compatibility:
|
||||
# CalledProcessError did not have output keyword argument
|
||||
e = subprocess.CalledProcessError(retcode, "openssl")
|
||||
|
Reference in New Issue
Block a user