Skip to content

Commit

Permalink
Fix spdlog_setup::from_file() not accepting fs::path
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 28, 2024
1 parent 39d2eb0 commit 2fae5f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/novatel_edie/common/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Logger
}
}

static void InitLogger(std::filesystem::path sLoggerConfigPath_)
static void InitLogger(const std::filesystem::path& sLoggerConfigPath_)
{
std::lock_guard<std::mutex> lock(mLoggerMutex);
try
Expand All @@ -92,7 +92,7 @@ class Logger
if (pclMyRootLogger) { SPDLOG_ERROR("Cannot configure logger from file, root logger already exists"); }
else
{
spdlog_setup::from_file(sLoggerConfigPath_);
spdlog_setup::from_file(sLoggerConfigPath_.string());
pclMyRootLogger = spdlog::get("root");

spdlog::set_default_logger(pclMyRootLogger);
Expand Down

0 comments on commit 2fae5f7

Please sign in to comment.