mirror of
https://github.com/monero-project/monero.git
synced 2025-05-10 21:25:04 -04:00
Print stack trace upon exceptions
Useful for debugging users' logs
This commit is contained in:
parent
d7fb03fc97
commit
fff238ec94
43 changed files with 259 additions and 63 deletions
|
@ -777,7 +777,7 @@ POP_WARNINGS
|
|||
{
|
||||
m_thread_name_prefix = prefix_name;
|
||||
auto it = server_type_map.find(m_thread_name_prefix);
|
||||
if (it==server_type_map.end()) throw std::runtime_error("Unknown prefix/server type:" + std::string(prefix_name));
|
||||
if (it==server_type_map.end()) throw tools::runtime_error("Unknown prefix/server type:" + std::string(prefix_name));
|
||||
auto connection_type = it->second; // the value of type
|
||||
_info_c("net/RPClog", "Set server type to: " << connection_type << " from name: " << m_thread_name_prefix);
|
||||
_info_c("net/RPClog", "prefix_name = " << prefix_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue