Skip to content

Commit

Permalink
Fix test_daily_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Feb 1, 2025
1 parent ac432c3 commit f355b3d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_daily_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ TEST_CASE("daily_logger with dateonly calculator", "[daily_logger]") {

struct custom_daily_file_name_calculator {
static spdlog::filename_t calc_filename(const spdlog::filename_t &basename, const tm &now_tm) {
filename_memory_buf_t w;
spdlog::fmt_lib::format_to(std::back_inserter(w), SPDLOG_FILENAME_T("{}{:04d}{:02d}{:02d}"),

return spdlog::fmt_lib::format(SPDLOG_FILENAME_T("{}{:04d}{:02d}{:02d}"),
basename, now_tm.tm_year + 1900, now_tm.tm_mon + 1,
now_tm.tm_mday);

return SPDLOG_BUF_TO_STRING(w);
now_tm.tm_mday);
}
};

Expand Down

0 comments on commit f355b3d

Please sign in to comment.