mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 20:52:30 +02:00
specify application name
This commit is contained in:
parent
439b8798c9
commit
2988395b81
3 changed files with 21 additions and 6 deletions
|
@ -18,14 +18,14 @@ namespace api
|
|||
|
||||
void InitI2P (int argc, char* argv[])
|
||||
{
|
||||
i2p::util::filesystem::SetAppName (argv[0]);
|
||||
i2p::util::config::OptionParser(argc, argv);
|
||||
i2p::context.Init ();
|
||||
}
|
||||
|
||||
void StartI2P ()
|
||||
{
|
||||
std::string logfilePath ("libi2pd.log");
|
||||
StartLog (logfilePath);
|
||||
StartLog (i2p::util::filesystem::GetAppName () + ".log");
|
||||
i2p::data::netdb.Start();
|
||||
LogPrint("NetDB started");
|
||||
i2p::transport::transports.Start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue