Add more info logging when loading roles.yml (elastic/x-pack-elasticsearch#3992)
Although not frequently used in production, we make heavy use of the FileRolesStore within integration tests. This change adds a little bit more logging at INFO level when the roles.yml file is (re)loaded. Original commit: elastic/x-pack-elasticsearch@bbacd46e28
This commit is contained in:
parent
1eca36bda9
commit
828387a25a
|
@ -171,7 +171,7 @@ public class FileRolesStore extends AbstractComponent {
|
|||
return emptyMap();
|
||||
}
|
||||
|
||||
logger.debug("parsed [{}] roles from file [{}]", roles.size(), path.toAbsolutePath());
|
||||
logger.info("parsed [{}] roles from file [{}]", roles.size(), path.toAbsolutePath());
|
||||
return unmodifiableMap(roles);
|
||||
}
|
||||
|
||||
|
@ -323,7 +323,7 @@ public class FileRolesStore extends AbstractComponent {
|
|||
if (file.equals(FileRolesStore.this.file)) {
|
||||
try {
|
||||
permissions = parseFile(file, logger, settings, licenseState);
|
||||
logger.info("updated roles (roles file [{}] changed)", file.toAbsolutePath());
|
||||
logger.info("updated roles (roles file [{}] {})", file.toAbsolutePath(), Files.exists(file) ? "changed" : "removed");
|
||||
} catch (Exception e) {
|
||||
logger.error(
|
||||
(Supplier<?>) () -> new ParameterizedMessage(
|
||||
|
|
Loading…
Reference in New Issue