Log INFO message when reloading SSL configuration file changes (elastic/x-pack-elasticsearch#1082)

This commit adds a INFO level log message to indicate that a file was reloaded and the SSL contexts
using the file were also updated.

relates elastic/x-pack-elasticsearch#1063

Original commit: elastic/x-pack-elasticsearch@f53f7019de
This commit is contained in:
Jay Modi 2017-04-24 07:46:14 -04:00 committed by GitHub
parent 5f9a48efbf
commit f063af9ee3
1 changed files with 6 additions and 0 deletions

View File

@ -114,11 +114,17 @@ public class SSLConfigurationReloader extends AbstractComponent {
@Override
public void onFileChanged(Path file) {
boolean reloaded = false;
for (SSLConfiguration sslConfiguration : sslConfigurations) {
if (sslConfiguration.filesToMonitor(environment).contains(file)) {
reloadSSLContext(sslConfiguration);
reloaded = true;
}
}
if (reloaded) {
logger.info("reloaded [{}] and updated ssl contexts using this file", file);
}
}
}
}