Update rotating_file_sink-inl.h

This commit is contained in:
Gabi Melman 2022-02-13 09:41:15 +02:00 committed by GitHub
parent 4cea9b8729
commit 4c2ce2c82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ SPDLOG_INLINE rotating_file_sink<Mutex>::rotating_file_sink(
if (max_size > 200000)
{
throw_spdlog_ex("rotating sink constructor: max_size arg cannot exceed 2000000");
throw_spdlog_ex("rotating sink constructor: max_size arg cannot exceed 200000");
}
file_helper_.open(calc_filename(base_filename_, 0));
current_size_ = file_helper_.size(); // expensive. called only once