servers: log more diagnostic information on caught std::exception

This commit is contained in:
loonycyborg 2022-02-04 21:30:18 +03:00
parent 73e492cc26
commit 44f18ea01c
No known key found for this signature in database
GPG key ID: 6E8233FAB8F26D61

View file

@ -244,7 +244,7 @@ int server_base::run() {
} catch(const boost::system::system_error& e) {
ERR_SERVER << "Caught system error exception from handler: " << e.code().message() << "\n";
} catch(const std::exception& e) {
ERR_SERVER << "Caught exception from handler: " << e.what() << "\n";
ERR_SERVER << "Caught exception from handler: " << e.what() << "\n" << boost::current_exception_diagnostic_information() << "\n";
}
}
}