aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Log.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-06-11 16:35:31 +0200
committerShauren <shauren.trinity@gmail.com>2025-06-11 16:35:31 +0200
commit1ae7cdd512a28a973aaa087f4516baca1cae665b (patch)
tree9853eecd08e3669ba8143cd9c7bb2d0efd7342a5 /src/common/Logging/Log.cpp
parent2abf19e83286bdc60765bdc1caf3a78c900e2d99 (diff)
Core/Common: Update PCH content to include most commonly used headers
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 */)