diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-12-04 14:40:10 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-12-04 14:40:10 -0800 |
| commit | 16613ab5fb5a1f6cb1271ae67e68836a1898023d (patch) | |
| tree | 7645a268b922c5786985f1e4348279e2b68fa0be /node/Node.hpp | |
| parent | c26bf45e28fcf74ce2f0adff5a67787794c30940 (diff) | |
| download | infinitytier-16613ab5fb5a1f6cb1271ae67e68836a1898023d.tar.gz infinitytier-16613ab5fb5a1f6cb1271ae67e68836a1898023d.zip | |
Clean up remote tracing code, add per-network remote trace settings, add remote trace level, and make local trace output readable again.
Diffstat (limited to 'node/Node.hpp')
| -rw-r--r-- | node/Node.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/node/Node.hpp b/node/Node.hpp index ae7976d4..f8236db8 100644 --- a/node/Node.hpp +++ b/node/Node.hpp @@ -258,6 +258,7 @@ public: virtual void ncSendError(uint64_t nwid,uint64_t requestPacketId,const Address &destination,NetworkController::ErrorCode errorCode); inline const Address &remoteTraceTarget() const { return _remoteTraceTarget; } + inline Trace::Level remoteTraceLevel() const { return _remoteTraceLevel; } private: RuntimeEnvironment _RR; @@ -281,9 +282,12 @@ private: Mutex _backgroundTasksLock; Address _remoteTraceTarget; + enum Trace::Level _remoteTraceLevel; + int64_t _now; int64_t _lastPingCheck; int64_t _lastHousekeepingRun; + int64_t _lastMemoizedTraceSettings; volatile int64_t _prngState[2]; bool _online; }; |
