Add a special exception logger

We'll need this to make sure that we can redirect caught exceptions
printed in `src/common/` to the correct file if `YABRIDGE_DEBUG_FILE` is
set.
This commit is contained in:
Robbert van der Helm
2021-07-23 15:41:38 +02:00
parent 0e838fa947
commit 1a34a80c21
4 changed files with 21 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ bool InitModule() {
return true;
} catch (const std::exception& error) {
Logger logger = Logger::create_from_environment();
Logger logger = Logger::create_exception_logger();
logger.log("Error during initialization:");
logger.log(error.what());