Set default value to registry::err_handler_

This commit is contained in:
Jakub Neruda 2021-02-17 14:02:20 +01:00 committed by GitHub
parent 42c5eb59c9
commit 5d4956d34b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ private:
std::unique_ptr<formatter> formatter_;
spdlog::level::level_enum global_log_level_ = level::info;
level::level_enum flush_level_ = level::off;
void (*err_handler_)(const std::string &msg);
void (*err_handler_)(const std::string &msg) = nullptr;
std::shared_ptr<thread_pool> tp_;
std::unique_ptr<periodic_worker> periodic_flusher_;
std::shared_ptr<logger> default_logger_;