diff options
author | Sandor Magyar <SMagyar@aphysci.com> | 2022-10-19 03:25:32 +0300 |
---|---|---|
committer | Sandor Magyar <SMagyar@aphysci.com> | 2022-10-19 03:25:32 +0300 |
commit | 5f67ef4d6f2c1760562f2931bee13990da11d43e (patch) | |
tree | 99fcaddf27930d9960930631e2b85ad109fd1f92 | |
parent | 1bb1f05d73abc99f5c245052c997cd0bda2a31d6 (diff) |
Remove pointless try block in mongo_sink
-rw-r--r-- | include/spdlog/sinks/mongo_sink.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index b8928d67..36201f5c 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -31,8 +31,7 @@ class mongo_sink : public base_sink<Mutex> { public: mongo_sink(const std::string &db_name, const std::string &collection_name, const std::string &uri = "mongodb://localhost:27017") - try : mongo_sink(std::make_shared<mongocxx::instance>(), db_name, collection_name, uri) {} - catch (...) {} // Re-throws exception + : mongo_sink(std::make_shared<mongocxx::instance>(), db_name, collection_name, uri) {} mongo_sink(const std::shared_ptr<mongocxx::instance> &instance, const std::string &db_name, const std::string &collection_name, const std::string &uri = "mongodb://localhost:27017") : instance_(instance) |