Skip to content

Commit

Permalink
Support older fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
375gnu committed Dec 26, 2023
1 parent 481f1e8 commit 076b1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/celutil/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Logger::vlog(Level level, std::string_view format, fmt::format_args args) const
#endif

auto &stream = (level <= Level::Warning || level == Level::Debug) ? m_err : m_log;
fmt::vprint(stream, format, args);
fmt::print(stream, fmt::vformat(format, args));
}

} // end namespace celestia::util

0 comments on commit 076b1f3

Please sign in to comment.