Use setter method for m_TimeFormat, set time format in Daemon.cpp instead of Log.cpp
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
*/
|
||||
|
||||
#include "Log.h"
|
||||
#include "Config.h"
|
||||
|
||||
namespace i2p {
|
||||
namespace log {
|
||||
@@ -74,8 +73,6 @@ namespace log {
|
||||
if (!m_IsRunning)
|
||||
{
|
||||
m_IsRunning = true;
|
||||
bool logclftime; i2p::config::GetOption("logclftime", logclftime);
|
||||
if (logclftime) m_TimeFormat = "[%d/%b/%Y:%H:%M:%S %z]";
|
||||
m_Thread = new std::thread (std::bind (&Log::Run, this));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user