use exceptionStr() when formating some errors in the logging code
Summary: If an error is thrown when formating arguments for a log message, use `folly::exceptionStr()` to format the exception instead of just `ex.what()`. I changed all of the tests that verify the results of these strings to use a regular expression, as `folly::exceptionStr()` produces different results in different platforms, and does not always demangle type names. I also included a minor change to increase a timeout in AsyncFileWriterTest.cpp, as I saw this timeout fail spuriously once in my testing. Reviewed By: yfeldblum Differential Revision: D21635680 fbshipit-source-id: 749ef48deb59af1f2faef0158e0291838e09fc38
Showing
Please register or sign in to comment