From 21ecf309bba81e0f537b8abed3d6e992c591f3f3 Mon Sep 17 00:00:00 2001 From: hagen Date: Wed, 3 Feb 2016 11:22:00 +0000 Subject: [PATCH] * Daemon.cpp : --log option now uses descriptive values: file, stdout (#356) --- Daemon.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Daemon.cpp b/Daemon.cpp index 3d0f67c4..3a44b187 100644 --- a/Daemon.cpp +++ b/Daemon.cpp @@ -135,11 +135,11 @@ namespace i2p std::string logs = ""; i2p::config::GetOption("log", logs); std::string logfile = ""; i2p::config::GetOption("logfile", logfile); 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 == "") {