| 729 | } |
| 730 | |
| 731 | void Root::writeConfig() { |
| 732 | if (m_configuration) { |
| 733 | auto currentConfig = m_configuration->currentConfiguration(); |
| 734 | if (m_lastRuntimeConfig != currentConfig) { |
| 735 | if (m_runtimeConfigFile) { |
| 736 | Logger::info("Root: Writing runtime configuration to '{}'", *m_runtimeConfigFile); |
| 737 | File::overwriteFileWithRename(m_configuration->printConfiguration(), *m_runtimeConfigFile); |
| 738 | } |
| 739 | m_lastRuntimeConfig = currentConfig; |
| 740 | } |
| 741 | } |
| 742 | } |
| 743 | |
| 744 | template <typename T, typename... Params> |
| 745 | shared_ptr<T> Root::loadMember(shared_ptr<T>& ptr, Mutex& mutex, char const* name, Params&&... params) { |
nothing calls this directly
no test coverage detected