mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
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:
@@ -50,7 +50,7 @@ extern "C" VST_EXPORT AEffect* VSTPluginMain(
|
||||
|
||||
return &bridge->plugin;
|
||||
} 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());
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user