mirror of
https://github.com/monero-project/monero.git
synced 2025-07-22 22:10:45 -04:00
Moved logging to target functions rather than caller
This commit is contained in:
parent
442bfd1600
commit
8ed0d72b12
6 changed files with 31 additions and 21 deletions
|
@ -69,12 +69,13 @@ public:
|
|||
|
||||
~t_protocol()
|
||||
{
|
||||
LOG_PRINT_L0("Deinitializing cryptonote_protocol...");
|
||||
LOG_PRINT_L0("Stopping cryptonote protocol...");
|
||||
try {
|
||||
m_protocol.deinit();
|
||||
m_protocol.set_p2p_endpoint(nullptr);
|
||||
LOG_PRINT_L0("Cryptonote protocol stopped successfully");
|
||||
} catch (...) {
|
||||
LOG_PRINT_L0("Failed to deinitialize protocol...");
|
||||
LOG_ERROR("Failed to stop cryptonote protocol!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue