diff --git a/core/src/main/java/hudson/model/TopLevelItemDescriptor.java b/core/src/main/java/hudson/model/TopLevelItemDescriptor.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/hudson/model/TopLevelItemDescriptor.java
+++ b/core/src/main/java/hudson/model/TopLevelItemDescriptor.java
@@ -40,6 +40,7 @@ import org.kohsuke.stapler.jelly.JellyClassTearOff;
 import javax.annotation.CheckForNull;
 import javax.annotation.Nonnull;
 import java.io.StringWriter;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 /**
@@ -157,7 +158,7 @@ public abstract class TopLevelItemDescriptor extends Descriptor<TopLevelItem> {
                 dsi.invokeScript(Stapler.getCurrentRequest(), Stapler.getCurrentResponse(), s, this, xml);
                 return sw.toString();
             } catch (Exception e) {
-                LOGGER.warning(e.getMessage());
+                LOGGER.log(Level.WARNING, null, e);
                 return "";
             }
         } else {
[JENKINS-<I>] LOGGER.log() instead of LOGGER.warning()