diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index 34f4ee33..d239e928 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -37,7 +37,7 @@ public: db_name_ = db_name; coll_name_ = collection_name; } - catch (const std::exception) + catch (const std::exception&) { throw spdlog_ex("Error opening database"); }