diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-10-04 11:41:13 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-10-04 11:41:13 +0200 |
commit | fa1d5efb5a7038bc7c54687db3da3b0c8fb54157 (patch) | |
tree | 5a23088414f6401011128879dce17dfcbf3b976b /src/daemon | |
parent | Merge pull request #1167 (diff) | |
parent | Brackets to prevent premature return (diff) | |
download | monero-fa1d5efb5a7038bc7c54687db3da3b0c8fb54157.tar.xz |
Merge pull request #1168
10be903 Brackets to prevent premature return (NanoAkron)
fb1785a Brackets to ensure doesn't function prematurely return (NanoAkron)
8ed0d72 Moved logging to target functions rather than caller (NanoAkron)
442bfd1 Added messages at log level 2 to reflect deactivation procedure (NanoAkron)
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/protocol.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/protocol.h b/src/daemon/protocol.h index 8e2add4a2..eb894fb81 100644 --- a/src/daemon/protocol.h +++ b/src/daemon/protocol.h @@ -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!"); } } }; |