This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.1.x by this push:
     new 20797e1  stats_over_http: don't show config file error when not 
specified (#8279)
20797e1 is described below

commit 20797e1c5d375a071364db33e6ecc1e510b0a199
Author: Randall Meyer <[email protected]>
AuthorDate: Mon Aug 30 10:21:37 2021 -0700

    stats_over_http: don't show config file error when not specified (#8279)
    
    (cherry picked from commit 22c5b19adb7609afcd1fe91de5e868aee6dd7ef4)
---
 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 1d1e40b..3d348c9 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) {

Reply via email to