Some errors were not logged correctly and only showed up as "{}"
by making the following changes
errors don't have any enumerable properties so need special handling by the logger, because JSON.stringify() doesn't work on them. The special handling was done for WebexHttpError, but sometimes we have other errors thrown in the code, so changed the condition to check for Error (WebexHttpError extends Error).
Change Type
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
This pull request addresses
Some errors were not logged correctly and only showed up as "{}"
by making the following changes
errors don't have any enumerable properties so need special handling by the logger, because JSON.stringify() doesn't work on them. The special handling was done for WebexHttpError, but sometimes we have other errors thrown in the code, so changed the condition to check for Error (WebexHttpError extends Error).
Change Type
The following scenarios where tested
unit tests
I certified that
[x] I have read and followed contributing guidelines
[x] I discussed changes with code owners prior to submitting this pull request
[x] I have not skipped any automated checks
[x] All existing and new tests passed
[x] I have updated the documentation accordingly
Make sure to have followed the contributing guidelines before submitting.