diff options
| author | NanoAkron <nanoakron@users.noreply.github.com> | 2016-10-03 22:11:00 +0100 |
|---|---|---|
| committer | NanoAkron <nanoakron@users.noreply.github.com> | 2016-10-03 22:11:00 +0100 |
| commit | 8ed0d72b12e6b0d1733c106d07c1b1036507e81e (patch) | |
| tree | 541da023a4cc9d6a80702e694cc8865dd8adb56e /src/daemon/protocol.h | |
| parent | 442bfd16005423f0b2061f85841041a2f1a0ccd0 (diff) | |
| download | monzero-core-8ed0d72b12e6b0d1733c106d07c1b1036507e81e.tar.gz monzero-core-8ed0d72b12e6b0d1733c106d07c1b1036507e81e.tar.xz monzero-core-8ed0d72b12e6b0d1733c106d07c1b1036507e81e.zip | |
Moved logging to target functions rather than caller
Diffstat (limited to 'src/daemon/protocol.h')
| -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!"); } } }; |
