Skip to content

Commit 328798f

Browse files
Code format - (Clang-format)
1 parent 70095d7 commit 328798f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/lib/logging/logger.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ std::string Logger::getLevel() const {
7373
return std::string { level.begin(), level.end() };
7474
}
7575

76-
void Logger::logProfile(const std::string& name, double duration_ms) const {
76+
void Logger::logProfile(const std::string &name, double duration_ms) const {
7777
std::string mutable_name = name;
7878

7979
std::ranges::replace(mutable_name, ':', '_');
@@ -89,15 +89,14 @@ void Logger::logProfile(const std::string& name, double duration_ms) const {
8989
const auto profile_logger = std::make_shared<spdlog::logger>(mutable_name, file_sink);
9090
profile_loggers_[filename] = profile_logger;
9191
profile_logger->info("Function {} executed in {} ms", name, duration_ms);
92-
} catch (const spdlog::spdlog_ex& ex) {
92+
} catch (const spdlog::spdlog_ex &ex) {
9393
error("Profile log initialization failed: {}", ex.what());
9494
}
9595
} else {
9696
it->second->info("Function {} executed in {} ms", mutable_name, duration_ms);
9797
}
9898
}
9999

100-
101100
// Função para limpar logs antigos
102101
void Logger::cleanOldLogs(const std::string &logDirectory, int days) const {
103102
namespace fs = std::filesystem;

0 commit comments

Comments
 (0)