mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-26 16:32:57 +00:00
specify application name
This commit is contained in:
1 parent
439b8798c9
commit
2988395b81
3 files changed
+21
-6
No files matched your search
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user