mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
write to log through the separate thread
This commit is contained in:
parent
164d3566e3
commit
d91691c344
4 changed files with 75 additions and 47 deletions
3
api.cpp
3
api.cpp
|
@ -47,7 +47,7 @@ namespace api
|
|||
i2p::log::Logger().SendTo (logStream);
|
||||
else
|
||||
i2p::log::Logger().SendTo (i2p::fs::DataDirPath (i2p::fs::GetAppName () + ".log"));
|
||||
i2p::log::Logger().Ready();
|
||||
i2p::log::Logger().Start ();
|
||||
LogPrint(eLogInfo, "API: starting NetDB");
|
||||
i2p::data::netdb.Start();
|
||||
LogPrint(eLogInfo, "API: starting Transports");
|
||||
|
@ -65,6 +65,7 @@ namespace api
|
|||
i2p::transport::transports.Stop();
|
||||
LogPrint(eLogInfo, "API: stopping NetDB");
|
||||
i2p::data::netdb.Stop();
|
||||
i2p::log::Logger().Stop ();
|
||||
}
|
||||
|
||||
void RunPeerTest ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue