Improve secrets_manager logging after 500 Internal Server Error

This is to add better logging to assist with debugging 500
Internal Server Errors that manifest from either internal
bugs in Deckhand or document typos/errors ingested by Deckhand
during document substitution.

Change-Id: I5f4c1cb07bea8e6546d08a858d4f83a24d75ef5a
This commit is contained in:
Felipe Monteiro
2018-03-10 16:39:48 -05:00
parent a07635c6a4
commit 65c459d1f9
2 changed files with 18 additions and 3 deletions

View File

@@ -385,5 +385,7 @@ class UnknownSubstitutionError(DeckhandException):
**Troubleshoot:**
"""
msg_fmt = ('An unknown exception occurred while trying to perform '
'substitution. Details: %(details)s')
'substitution using source document [%(src_schema)s] '
'%(src_name)s contained in document [%(document_schema)s] '
'%(document_name)s. Details: %(details)s')
code = 500