diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:19:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:19:22 +0000 |
commit | c21c3b0befeb46a51b6bf3758ffa30813bea0ff0 (patch) | |
tree | 9754ff1ca740f6346cf8483ec915d4054bc5da2d /daemon/commands.c | |
parent | Adding upstream version 1.43.2. (diff) | |
download | netdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.tar.xz netdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.zip |
Adding upstream version 1.44.3.upstream/1.44.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'daemon/commands.c')
-rw-r--r-- | daemon/commands.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/daemon/commands.c b/daemon/commands.c index a8afb5a00..ed544224e 100644 --- a/daemon/commands.c +++ b/daemon/commands.c @@ -142,10 +142,10 @@ static cmd_status_t cmd_reload_health_execute(char *args, char **message) (void)args; (void)message; - error_log_limit_unlimited(); + nd_log_limits_unlimited(); netdata_log_info("COMMAND: Reloading HEALTH configuration."); health_reload(); - error_log_limit_reset(); + nd_log_limits_reset(); return CMD_STATUS_SUCCESS; } @@ -155,11 +155,11 @@ static cmd_status_t cmd_save_database_execute(char *args, char **message) (void)args; (void)message; - error_log_limit_unlimited(); + nd_log_limits_unlimited(); netdata_log_info("COMMAND: Saving databases."); rrdhost_save_all(); netdata_log_info("COMMAND: Databases saved."); - error_log_limit_reset(); + nd_log_limits_reset(); return CMD_STATUS_SUCCESS; } @@ -169,10 +169,9 @@ static cmd_status_t cmd_reopen_logs_execute(char *args, char **message) (void)args; (void)message; - error_log_limit_unlimited(); - netdata_log_info("COMMAND: Reopening all log files."); - reopen_all_log_files(); - error_log_limit_reset(); + nd_log_limits_unlimited(); + nd_log_reopen_log_files(); + nd_log_limits_reset(); return CMD_STATUS_SUCCESS; } @@ -182,7 +181,7 @@ static cmd_status_t cmd_exit_execute(char *args, char **message) (void)args; (void)message; - error_log_limit_unlimited(); + nd_log_limits_unlimited(); netdata_log_info("COMMAND: Cleaning up to exit."); netdata_cleanup_and_exit(0); exit(0); |