Skip to content

Commit c37af7b

Browse files
committed
lower logging level
1 parent 4d9b96f commit c37af7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/FileAccessTree.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static String normalizePath(Path path) {
203203
}
204204

205205
private boolean checkPath(String path, String[] paths) {
206-
logger.debug(() -> Strings.format("checking [%s] against [%s]", path, String.join(",", paths)));
206+
logger.trace(() -> Strings.format("checking [%s] against [%s]", path, String.join(",", paths)));
207207
if (paths.length == 0) {
208208
return false;
209209
}
@@ -221,7 +221,7 @@ private boolean checkPath(String path, String[] paths) {
221221
}
222222

223223
private static boolean isParent(String maybeParent, String path) {
224-
logger.debug(() -> Strings.format("checking isParent [%s] for [%s]", maybeParent, path));
224+
logger.trace(() -> Strings.format("checking isParent [%s] for [%s]", maybeParent, path));
225225
return path.startsWith(maybeParent) && path.startsWith(FILE_SEPARATOR, maybeParent.length());
226226
}
227227

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/PolicyManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public void checkFileRead(Class<?> callerClass, File file) {
311311
private static boolean isPathOnDefaultFilesystem(Path path) {
312312
var pathFileSystemClass = path.getFileSystem().getClass();
313313
if (path.getFileSystem().getClass() != DEFAULT_FILESYSTEM_CLASS) {
314-
logger.debug(
314+
logger.trace(
315315
() -> Strings.format(
316316
"File entitlement trivially allowed: path [%s] is for a different FileSystem class [%s], default is [%s]",
317317
path.toString(),

0 commit comments

Comments
 (0)