mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Add unit test for daily_filename_format_calculator
This commit is contained in:
@@ -75,7 +75,7 @@ struct daily_filename_format_calculator
|
||||
return buf;
|
||||
#else
|
||||
fmt::basic_memory_buffer<filename_t::value_type> tm_format;
|
||||
tm_format.append(specs.begin(), specs.end());
|
||||
tm_format.append(filename.c_str(), filename.c_str() + filename.size());
|
||||
// By appending an extra space we can distinguish an empty result that
|
||||
// indicates insufficient buffer size from a guaranteed non-empty result
|
||||
// https://github.com/fmtlib/fmt/issues/2238
|
||||
|
Reference in New Issue
Block a user