summaryrefslogtreecommitdiff
path: root/node/Node.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-12-04 14:40:10 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-12-04 14:40:10 -0800
commit16613ab5fb5a1f6cb1271ae67e68836a1898023d (patch)
tree7645a268b922c5786985f1e4348279e2b68fa0be /node/Node.hpp
parentc26bf45e28fcf74ce2f0adff5a67787794c30940 (diff)
downloadinfinitytier-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.hpp4
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;
};