mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-19 21:25:30 +00:00
* Daemon.cpp : --log option now uses descriptive values: file, stdout (#356)
This commit is contained in:
parent
4bb4012d87
commit
21ecf309bb
@ -136,10 +136,10 @@ namespace i2p
|
|||||||
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 == "" || logs == "stdout"))
|
||||||
if (isDaemon || logs != "") isLogging = true;
|
logs = "file";
|
||||||
|
|
||||||
if (isLogging)
|
if (logs == "file")
|
||||||
{
|
{
|
||||||
if (logfile == "")
|
if (logfile == "")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user