From 452f495adb9cfad4232b6346a75f2c34dd9a9fed Mon Sep 17 00:00:00 2001 From: Randall Meyer Date: Wed, 25 Aug 2021 11:00:11 -0700 Subject: [PATCH] stats_over_http: don't show config file error when not specified --- plugins/stats_over_http/stats_over_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/stats_over_http/stats_over_http.c b/plugins/stats_over_http/stats_over_http.c index 1d1e40bec67..3d348c95985 100644 --- a/plugins/stats_over_http/stats_over_http.c +++ b/plugins/stats_over_http/stats_over_http.c @@ -1005,7 +1005,7 @@ load_config_file(config_holder_t *config_holder) fh = TSfopen(config_holder->config_path, "r"); } - if (!fh) { + if (!fh && config_holder->config_path != NULL) { TSError("[%s] Unable to open config: %s. Will use the param as the path, or %s if null\n", PLUGIN_NAME, config_holder->config_path, DEFAULT_URL_PATH); if (config_holder->config) {