Skip to content

Commit

Permalink
Removed hardcoded sni.yaml configuration filename in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bryancall committed Sep 26, 2019
1 parent eebdabb commit c4ce635
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iocore/net/SSLSNIConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit c4ce635

Please sign in to comment.