src/components/config.cpp
/**
 * Print a deprecation warning if the given parameter is set
 */
Print a deprecation warning if the given parameter is set
Print a deprecation warning if the given parameter is set
void config::warn_deprecated(const string& section, const string& key, string replacement) const {
  try {
    auto value = get<string>(section, key);
    m_log.warn(
        "The config parameter `%s.%s` is deprecated, use `%s.%s` instead.", section, key, section, move(replacement));
  } catch (const key_error& err) {
  }
}
void config :: warn_deprecated ( const string & section , const string & key , string replacement ) const { try { auto value = get < string > ( section , key ) ; m_log . warn ( " " , section , key , section , move ( replacement ) ) ; } catch ( const key_error & err ) { } }
Print a deprecation warning if the given parameter is set
Print a deprecation warning if the given parameter is set