From c21c3b0befeb46a51b6bf3758ffa30813bea0ff0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 9 Mar 2024 14:19:22 +0100 Subject: Adding upstream version 1.44.3. Signed-off-by: Daniel Baumann --- collectors/xenstat.plugin/xenstat_plugin.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'collectors/xenstat.plugin/xenstat_plugin.c') diff --git a/collectors/xenstat.plugin/xenstat_plugin.c b/collectors/xenstat.plugin/xenstat_plugin.c index c05d5e298..319396d43 100644 --- a/collectors/xenstat.plugin/xenstat_plugin.c +++ b/collectors/xenstat.plugin/xenstat_plugin.c @@ -920,22 +920,14 @@ static void xenstat_send_domain_metrics() { } int main(int argc, char **argv) { - stderror = stderr; clocks_init(); // ------------------------------------------------------------------------ // initialization of netdata plugin - program_name = "xenstat.plugin"; + program_name = PLUGIN_XENSTAT_NAME; - // disable syslog - error_log_syslog = 0; - - // set errors flood protection to 100 logs per hour - error_log_errors_per_period = 100; - error_log_throttle_period = 3600; - - log_set_global_severity_for_external_plugins(); + nd_log_initialize_for_external_plugins(PLUGIN_XENSTAT_NAME); // ------------------------------------------------------------------------ // parse command line parameters -- cgit v1.2.3