This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 106d06a Removed hardcoded sni.yaml configuration filename in logs
106d06a is described below
commit 106d06abf5be083554a68cfdb4220197e2c33abf
Author: Bryan Call <[email protected]>
AuthorDate: Wed Sep 25 15:12:56 2019 -0700
Removed hardcoded sni.yaml configuration filename in logs
(cherry picked from commit c4ce6357ef42a72a51cbea948c0ae515c2f2750d)
---
iocore/net/SSLSNIConfig.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/iocore/net/SSLSNIConfig.cc b/iocore/net/SSLSNIConfig.cc
index 32b8826..aa3246a 100644
--- a/iocore/net/SSLSNIConfig.cc
+++ b/iocore/net/SSLSNIConfig.cc
@@ -123,11 +123,11 @@ SNIConfigParams::Initialize()
{
sni_filename =
ats_stringdup(RecConfigReadConfigPath("proxy.config.ssl.servername.filename"));
- Note("sni.yaml loading ...");
+ Note("%s loading ...", sni_filename);
struct stat sbuf;
if (stat(sni_filename, &sbuf) == -1 && errno == ENOENT) {
- Note("sni.yaml failed to load");
+ Note("%s failed to load", sni_filename);
Warning("Loading SNI configuration - filename: %s doesn't exist",
sni_filename);
return 1;
}
@@ -136,12 +136,12 @@ SNIConfigParams::Initialize()
if (!zret.isOK()) {
std::stringstream errMsg;
errMsg << zret;
- Error("sni.yaml failed to load: %s", errMsg.str().c_str());
+ Error("%s failed to load: %s", sni_filename, errMsg.str().c_str());
return 1;
}
loadSNIConfig();
- Note("sni.yaml finished loading");
+ Note("%s finished loading", sni_filename);
return 0;
}