diff options
| author | Stefan Boberg <[email protected]> | 2021-09-16 13:14:02 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-16 13:14:02 +0200 |
| commit | 99c560212f0752b20a07fe6e968e93b9a70e7d4e (patch) | |
| tree | 96c2df68df0e5d25c89517f1013306a7dc4deaf9 /zenserver/upstream/zen.h | |
| parent | Fixed some unreferenced variable warnings (why don't we get these in sln buil... (diff) | |
| download | zen-99c560212f0752b20a07fe6e968e93b9a70e7d4e.tar.xz zen-99c560212f0752b20a07fe6e968e93b9a70e7d4e.zip | |
Fixed up mesh logging
Diffstat (limited to 'zenserver/upstream/zen.h')
| -rw-r--r-- | zenserver/upstream/zen.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zenserver/upstream/zen.h b/zenserver/upstream/zen.h index 541495818..ff4a551bf 100644 --- a/zenserver/upstream/zen.h +++ b/zenserver/upstream/zen.h @@ -4,6 +4,7 @@ #include <zencore/iobuffer.h> #include <zencore/iohash.h> +#include <zencore/logging.h> #include <zencore/memory.h> #include <zencore/thread.h> #include <zencore/uid.h> @@ -59,6 +60,9 @@ private: static const int kMaxMessageSize = 2048; static const int kMaxUpdateSize = 1400; // We'll try not to send messages larger than this + spdlog::logger& Log() { return m_Log; } + + spdlog::logger& m_Log; std::atomic<State> m_State = kInitializing; asio::io_context& m_IoContext; std::unique_ptr<asio::ip::udp::socket> m_UdpSocket; @@ -68,7 +72,7 @@ private: uint16_t m_Port = 0; uint8_t m_MessageBuffer[kMaxMessageSize]; asio::high_resolution_timer m_Timer{m_IoContext}; - Oid m_SessionId{Oid::NewOid()}; + Oid m_SessionId; struct PeerInfo { |