mirror of
https://github.com/gabime/spdlog.git
synced 2025-03-04 05:05:48 +08:00
Update check for 0 min configuration check.
This commit is contained in:
parent
464013d958
commit
526f938177
@ -61,7 +61,10 @@ public:
|
||||
, filenames_q_()
|
||||
{
|
||||
|
||||
|
||||
if (rotation_minute < 0)
|
||||
{
|
||||
throw_spdlog_ex("minute_interval_file_sink: Invalid rotation time in ctor");
|
||||
}
|
||||
|
||||
auto now = log_clock::now();
|
||||
auto filename = FileNameCalc::calc_filename(base_filename_, now_tm(now));
|
||||
|
Loading…
Reference in New Issue
Block a user