chore: add stack trace to all calls of logger.error (#14382)

This commit is contained in:
Sam Faber-Manning
2021-04-30 09:22:05 -07:00
committed by GitHub
parent 13cfc421d5
commit 11260b3117
26 changed files with 133 additions and 48 deletions

View File

@@ -311,7 +311,10 @@ class AnnotationRestApi(BaseSupersetModelRestApi):
return self.response_422(message=ex.normalized_messages())
except AnnotationCreateFailedError as ex:
logger.error(
"Error creating annotation %s: %s", self.__class__.__name__, str(ex)
"Error creating annotation %s: %s",
self.__class__.__name__,
str(ex),
exc_info=True,
)
return self.response_422(message=str(ex))
@@ -384,7 +387,10 @@ class AnnotationRestApi(BaseSupersetModelRestApi):
return self.response_422(message=ex.normalized_messages())
except AnnotationUpdateFailedError as ex:
logger.error(
"Error updating annotation %s: %s", self.__class__.__name__, str(ex)
"Error updating annotation %s: %s",
self.__class__.__name__,
str(ex),
exc_info=True,
)
return self.response_422(message=str(ex))
@@ -436,7 +442,10 @@ class AnnotationRestApi(BaseSupersetModelRestApi):
return self.response_404()
except AnnotationDeleteFailedError as ex:
logger.error(
"Error deleting annotation %s: %s", self.__class__.__name__, str(ex)
"Error deleting annotation %s: %s",
self.__class__.__name__,
str(ex),
exc_info=True,
)
return self.response_422(message=str(ex))