Minor cleanup

This commit is contained in:
gabime 2024-12-06 10:30:33 +02:00
parent d2299fcc31
commit 28af7c211f
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public:
// This make the default API faster, but cannot be used concurrently with set_default_logger().
// e.g do not call set_default_logger() from one thread while calling spdlog::info() from
// another.
logger *get_default_raw() const;
logger *get_default_raw() const noexcept;
// set default logger.
// default logger is stored in default_logger_ (for faster retrieval) and in the loggers_ map.

View File

@ -50,7 +50,7 @@ std::shared_ptr<logger> context::default_logger() {
// To be used directly by the spdlog default api (e.g. spdlog::info)
// This make the default API faster, but cannot be used concurrently with set_default_logger().
// e.g do not call set_default_logger() from one thread while calling spdlog::info() from another.
logger *context::get_default_raw() const { return default_logger_.get(); }
logger *context::get_default_raw() const noexcept{ return default_logger_.get(); }
// set default logger.
// default logger is stored in default_logger_ (for faster retrieval) and in the loggers_ map.