diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-02-24 08:43:42 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-02-24 08:43:42 +0200 |
commit | 59e25f1ffcdf5bd4f6b8d9da92718f82bcc259b1 (patch) | |
tree | a809d02813049c6b3c73c1d8f28a82a30e8918f5 /src | |
parent | 1f728fa1ea2ced70254debf3b6bf63b76ad90ee0 (diff) | |
download | pies-59e25f1ffcdf5bd4f6b8d9da92718f82bcc259b1.tar.gz pies-59e25f1ffcdf5bd4f6b8d9da92718f82bcc259b1.tar.bz2 |
Remove spurious informational message on startup
Diffstat (limited to 'src')
-rw-r--r-- | src/ctl.c | 2 | ||||
-rw-r--r-- | src/pies.c | 10 | ||||
-rw-r--r-- | src/pies.h | 1 |
3 files changed, 10 insertions, 3 deletions
@@ -2309,7 +2309,7 @@ conf_reload (struct ctlio *io) saved_diag_fun = grecs_print_diag_fun; grecs_print_diag_fun = reload_diag_fun; messages = json_new_array (); - if (pies_read_config ()) + if (pies_reread_config ()) { json_object_set_string (io->output.reply, "status", "ER"); json_object_set_string (io->output.reply, "error_message", @@ -1569,7 +1569,6 @@ pies_read_config (void) struct grecs_list_entry *ep; int err = 0; - logmsg (LOG_INFO, _("reading configuration")); component_config_begin (); for (ep = config_list->head; ep; ep = ep->next) @@ -1588,6 +1587,13 @@ pies_read_config (void) return err; } +int +pies_reread_config (void) +{ + logmsg (LOG_INFO, _("reading configuration")); + return pies_read_config (); +} + static struct config_syntax *current_syntax = &config_syntax_tab[CONF_PIES]; #include "cmdline.h" @@ -2239,7 +2245,7 @@ main (int argc, char **argv) break; case ACTION_RELOAD: - if (pies_read_config ()) + if (pies_reread_config ()) { action = ACTION_CONT; break; @@ -329,6 +329,7 @@ void free_action (struct action *act); void pies_schedule_children (int op); int pies_read_config (void); +int pies_reread_config (void); void register_prog (struct component *comp); int progman_waiting_p (void); |