write to log through the separate thread

This commit is contained in:
orignal 2016-11-17 15:46:28 -05:00
parent 164d3566e3
commit d91691c344
4 changed files with 75 additions and 47 deletions

View file

@ -113,7 +113,7 @@ namespace i2p
} else {
// use stdout -- default
}
i2p::log::Logger().Ready();
i2p::log::Logger().Start();
LogPrint(eLogInfo, "i2pd v", VERSION, " starting");
LogPrint(eLogDebug, "FS: main config file: ", config);
@ -351,6 +351,7 @@ namespace i2p
}
#endif
i2p::crypto::TerminateCrypto ();
i2p::log::Logger().Stop();
return true;
}