Log before exiting the application on config reload error
[bpdyndnsd] / src / logger.cpp
index e94822a..fda6f85 100644 (file)
@@ -301,6 +301,17 @@ void Logger::print_conf_not_loaded(const string& config_path) const
 
 
 /**
+ * Prints out the unsuccessful parsing of the config files.
+ */
+void Logger::print_conf_reload_failed_exit() const
+{
+    int level = 0;
+    if ( level <= Loglevel )
+        log_error("Config files couldn't be reloaded. Exiting.");
+}
+
+
+/**
  * A file could not be opened for reading.
  * @param filename The filename.
  */