mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
moved log file from daemon to log
This commit is contained in:
parent
3e81123d94
commit
2062305f88
4 changed files with 30 additions and 18 deletions
|
@ -63,12 +63,7 @@ namespace i2p
|
|||
#else
|
||||
logfile_path.append("\\debug.log");
|
||||
#endif
|
||||
logfile.open(logfile_path, std::ofstream::out | std::ofstream::binary | std::ofstream::trunc);
|
||||
|
||||
if (!logfile.is_open())
|
||||
exit(-17);
|
||||
|
||||
LogPrint("Logging to file enabled.");
|
||||
g_Log.SetLogFile (logfile_path);
|
||||
|
||||
LogPrint("CMD parameters:");
|
||||
for (int i = 0; i < argc; ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue