Log before exiting the application on config reload error
[bpdyndnsd] / src / main.cpp
index 94bc813..54022da 100644 (file)
@@ -335,7 +335,10 @@ int main(int argc, char *argv[])
             need_config_reload = false;
 
             if ( updater->reload_config() != 0 )
+            {
+                updater->get_logger()->print_conf_reload_failed_exit();
                 exit(-1);
+            }
         }
 
         // Snore, snore... don't hog the cpu if we are in daemon_mode.