Skip to content

Commit

Permalink
wip: logger: Workaround fmtlib 10+ issue with format_string
Browse files Browse the repository at this point in the history
  • Loading branch information
shramov committed Jan 22, 2024
1 parent b7b4775 commit 4287409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tll/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class Logger : public logger::Methods<Logger>
fmt::format_to(std::back_inserter(*buf), format, std::forward<Args>(args)...);
} catch (fmt::format_error &e) {
buf->resize(0);
fmt::format_to(std::back_inserter(*buf), "Invalid format {}: {}", format, e.what());
fmt::format_to(std::back_inserter(*buf), "Invalid format {}: {}", static_cast<fmt::string_view>(format), e.what());
}
buf->push_back('\0');
tll_logger_log(_log, level, buf->data(), buf->size() - 1);
Expand Down

0 comments on commit 4287409

Please sign in to comment.