Write service log to separate directory

This commit is contained in:
Evgenii Terechkov 2016-01-26 20:03:43 +07:00
parent 5215bdc035
commit ab0d66c2ef
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ namespace i2p
{
if (isDaemon)
{
std::string logfile_path = IsService () ? "/var/log" : i2p::util::filesystem::GetDataDir().string();
std::string logfile_path = IsService () ? "/var/log/i2pd" : i2p::util::filesystem::GetDataDir().string();
#ifndef _WIN32
logfile_path.append("/i2pd.log");
#else