mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
log to file if daemon only
This commit is contained in:
parent
334c92bb49
commit
8aaaf26a9e
2 changed files with 14 additions and 8 deletions
3
Log.h
3
Log.h
|
@ -44,7 +44,8 @@ inline void StartLog (const std::string& fullFilePath)
|
|||
if (!g_Log)
|
||||
{
|
||||
g_Log = new Log ();
|
||||
g_Log->SetLogFile (fullFilePath);
|
||||
if (fullFilePath.length () > 0)
|
||||
g_Log->SetLogFile (fullFilePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue