aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Logging/Log.cpp')
-rw-r--r--src/common/Logging/Log.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/Logging/Log.cpp b/src/common/Logging/Log.cpp
index b64aec29866..643f0c8483c 100644
--- a/src/common/Logging/Log.cpp
+++ b/src/common/Logging/Log.cpp
@@ -19,7 +19,6 @@
#include "AppenderConsole.h"
#include "AppenderFile.h"
#include "Config.h"
-#include "Duration.h"
#include "Errors.h"
#include "LogMessage.h"
#include "LogOperation.h"
@@ -263,8 +262,7 @@ Logger const* Log::GetLoggerByType(std::string_view type) const
std::string Log::GetTimestampStr()
{
- time_t tt = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
- return TimeToTimestampStr(tt);
+ return TimeToTimestampStr(time(nullptr));
}
bool Log::SetLogLevel(std::string const& name, int32 newLeveli, bool isLogger /* = true */)