Skip to content

Commit

Permalink
Merge pull request #199 from timja/quieter-log
Browse files Browse the repository at this point in the history
Quieter log
  • Loading branch information
jglick authored Dec 14, 2020
2 parents a43d5b6 + 50f32d3 commit 1368833
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/org/kohsuke/stapler/lang/FieldRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 1368833

Please sign in to comment.