Browse Source

* Daemon.cpp : --log option now uses descriptive values: file, stdout (#356)

pull/358/head
hagen 9 years ago
parent
commit
21ecf309bb
  1. 6
      Daemon.cpp

6
Daemon.cpp

@ -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…
Cancel
Save