Merge pull request #1805 from sillykelvin/patch-1

fix compiling error and typo
This commit is contained in:
Gabi Melman 2021-01-21 02:56:53 +02:00 committed by GitHub
commit 4271185936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ namespace spdlog {
namespace sinks {
/*
* Generator of Houlry log file names in format basename.YYYY-MM-DD-HH.ext
* Generator of Hourly log file names in format basename.YYYY-MM-DD-HH.ext
*/
struct hourly_filename_calculator
{
@ -156,7 +156,7 @@ private:
if (!ok)
{
filenames_q_.push_back(std::move(current_file));
throw_spdlog_ex("Failed removing hourly file " + filename_to_str(old_filename), errno);
SPDLOG_THROW(spdlog_ex("Failed removing hourly file " + filename_to_str(old_filename), errno));
}
}
filenames_q_.push_back(std::move(current_file));