mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 12:24:19 +00:00
* sane log messages: api.cpp
This commit is contained in:
parent
642d0e6f74
commit
01a502339c
14
api.cpp
14
api.cpp
@ -27,23 +27,23 @@ namespace api
|
|||||||
StartLog (logStream);
|
StartLog (logStream);
|
||||||
else
|
else
|
||||||
StartLog (i2p::util::filesystem::GetFullPath (i2p::util::filesystem::GetAppName () + ".log"));
|
StartLog (i2p::util::filesystem::GetFullPath (i2p::util::filesystem::GetAppName () + ".log"));
|
||||||
|
LogPrint(eLogInfo, "API: starting NetDB");
|
||||||
i2p::data::netdb.Start();
|
i2p::data::netdb.Start();
|
||||||
LogPrint("NetDB started");
|
LogPrint(eLogInfo, "API: starting Transports");
|
||||||
i2p::transport::transports.Start();
|
i2p::transport::transports.Start();
|
||||||
LogPrint("Transports started");
|
LogPrint(eLogInfo, "API: starting Tunnels");
|
||||||
i2p::tunnel::tunnels.Start();
|
i2p::tunnel::tunnels.Start();
|
||||||
LogPrint("Tunnels started");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void StopI2P ()
|
void StopI2P ()
|
||||||
{
|
{
|
||||||
LogPrint("Shutdown started.");
|
LogPrint(eLogInfo, "API: shutting down");
|
||||||
|
LogPrint(eLogInfo, "API: stopping Tunnels");
|
||||||
i2p::tunnel::tunnels.Stop();
|
i2p::tunnel::tunnels.Stop();
|
||||||
LogPrint("Tunnels stopped");
|
LogPrint(eLogInfo, "API: stopping Transports");
|
||||||
i2p::transport::transports.Stop();
|
i2p::transport::transports.Stop();
|
||||||
LogPrint("Transports stopped");
|
LogPrint(eLogInfo, "API: stopping NetDB");
|
||||||
i2p::data::netdb.Stop();
|
i2p::data::netdb.Stop();
|
||||||
LogPrint("NetDB stopped");
|
|
||||||
StopLog ();
|
StopLog ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user