mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 20:13:44 +02:00
A few logging changes.
This commit is contained in:
parent
75471ee0e0
commit
0e62857841
2 changed files with 1 additions and 4 deletions
|
@ -178,7 +178,6 @@ void Network::setConfiguration(const Network::Config &conf)
|
||||||
Mutex::Lock _l(_lock);
|
Mutex::Lock _l(_lock);
|
||||||
try {
|
try {
|
||||||
if (conf.networkId() == _id) { // sanity check
|
if (conf.networkId() == _id) { // sanity check
|
||||||
//TRACE("network %.16llx got netconf:\n%s",(unsigned long long)_id,conf.toString().c_str());
|
|
||||||
_configuration = conf;
|
_configuration = conf;
|
||||||
_myCertificate = conf.certificateOfMembership();
|
_myCertificate = conf.certificateOfMembership();
|
||||||
_mcRates = conf.multicastRates();
|
_mcRates = conf.multicastRates();
|
||||||
|
|
|
@ -305,7 +305,7 @@ Node::ReasonForTermination Node::run()
|
||||||
_r->log = new Logger((_r->homePath + ZT_PATH_SEPARATOR_S + "node.log").c_str(),(const char *)0,131072);
|
_r->log = new Logger((_r->homePath + ZT_PATH_SEPARATOR_S + "node.log").c_str(),(const char *)0,131072);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TRACE("initializing...");
|
LOG("%s starting version %s",_r->identity.address().toString().c_str(),versionString());
|
||||||
|
|
||||||
// Create non-crypto PRNG right away in case other code in init wants to use it
|
// Create non-crypto PRNG right away in case other code in init wants to use it
|
||||||
_r->prng = new CMWC4096();
|
_r->prng = new CMWC4096();
|
||||||
|
@ -425,8 +425,6 @@ Node::ReasonForTermination Node::run()
|
||||||
uint64_t lastMulticastAnnounceAll = 0;
|
uint64_t lastMulticastAnnounceAll = 0;
|
||||||
long lastDelayDelta = 0;
|
long lastDelayDelta = 0;
|
||||||
|
|
||||||
LOG("%s starting version %s",_r->identity.address().toString().c_str(),versionString());
|
|
||||||
|
|
||||||
while (impl->reasonForTermination == NODE_RUNNING) {
|
while (impl->reasonForTermination == NODE_RUNNING) {
|
||||||
uint64_t now = Utils::now();
|
uint64_t now = Utils::now();
|
||||||
bool resynchronize = false;
|
bool resynchronize = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue