From 50f32d3031377086e0596148b0b18402581ded9a Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Mon, 14 Dec 2020 20:15:50 +0000 Subject: [PATCH] Quieter log --- core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java b/core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java index 57b94d278a..4956e19618 100644 --- a/core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java +++ b/core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java @@ -6,7 +6,6 @@ import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.util.Arrays; -import java.util.logging.Level; import java.util.logging.Logger; /** @@ -88,7 +87,7 @@ public Object get(Object instance) throws IllegalAccessException { try { return f.get(instance); } catch (IllegalAccessException e) { - LOGGER.log(Level.WARNING, "Please report to the respective component", e); + LOGGER.warning(e.getClass().getName() + ": Please report to the respective component:\n " + e.getMessage()); f.setAccessible(true); return f.get(instance); }