diff --git a/src/settings_bag.hpp b/src/settings_bag.hpp index 3610699..105ace4 100644 --- a/src/settings_bag.hpp +++ b/src/settings_bag.hpp @@ -51,7 +51,9 @@ namespace tawashi { } inline const boost::string_ref& SettingsBag::at (boost::string_ref parIndex) const { +#if defined(SPDLOG_DEBUG_ON) SPDLOG_DEBUG(spdlog::get("statuslog"), "Retrieving setting \"{}\"", std::string(parIndex.data(), parIndex.size())); +#endif return (*this)[parIndex]; } } //namespace tawashi