From 47cbf3828de7665f6fa5d429384c6520190e9ad3 Mon Sep 17 00:00:00 2001 From: Kelvin Hu Date: Tue, 19 Jan 2021 22:03:47 +0800 Subject: [PATCH] fix compiling error and typo --- include/spdlog/sinks/hourly_file_sink.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/sinks/hourly_file_sink.h b/include/spdlog/sinks/hourly_file_sink.h index 2def318f..f5e34366 100644 --- a/include/spdlog/sinks/hourly_file_sink.h +++ b/include/spdlog/sinks/hourly_file_sink.h @@ -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));