From fb8e4c9161badb1e69b8abf3f8ac312cb488d111 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Wed, 3 Jan 2024 23:28:24 +0100 Subject: [PATCH] remove useless 0 in log --- src/support/src/Logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/src/Logger.cpp b/src/support/src/Logger.cpp index be36815..91ff48d 100644 --- a/src/support/src/Logger.cpp +++ b/src/support/src/Logger.cpp @@ -19,7 +19,7 @@ void Logger::log(const std::string &tag, const std::string &what, int level) { std::shared_lock l(get()._mutex); auto now = std::chrono::high_resolution_clock::now(); std::stringstream out; - out << std::setprecision(4) << std::fixed << "[" + out << std::setprecision(3) << std::fixed << "[" << static_cast(std::chrono::duration_cast(now - get()._start_time).count()) / 1000.0 << "s]" << "[" << tag << "][" << get()._level_names.at(level) << "] " << what << '\n';