mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
* Daemon.cpp : --log option now uses descriptive values: file, stdout (#356)
This commit is contained in:
parent
4bb4012d87
commit
21ecf309bb
1 changed files with 4 additions and 4 deletions
|
@ -135,11 +135,11 @@ namespace i2p
|
||||||
std::string logs = ""; i2p::config::GetOption("log", logs);
|
std::string logs = ""; i2p::config::GetOption("log", logs);
|
||||||
std::string logfile = ""; i2p::config::GetOption("logfile", logfile);
|
std::string logfile = ""; i2p::config::GetOption("logfile", logfile);
|
||||||
std::string loglevel = ""; i2p::config::GetOption("loglevel", loglevel);
|
std::string loglevel = ""; i2p::config::GetOption("loglevel", loglevel);
|
||||||
|
|
||||||
// temporary hack
|
|
||||||
if (isDaemon || logs != "") isLogging = true;
|
|
||||||
|
|
||||||
if (isLogging)
|
if (isDaemon && (logs == "" || logs == "stdout"))
|
||||||
|
logs = "file";
|
||||||
|
|
||||||
|
if (logs == "file")
|
||||||
{
|
{
|
||||||
if (logfile == "")
|
if (logfile == "")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue