Skip to content

Commit

Permalink
[JENKINS-31162] LOGGER.log() instead of LOGGER.warning()
Browse files Browse the repository at this point in the history
  • Loading branch information
recena committed Mar 21, 2016
1 parent a585e87 commit 5584229
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/hudson/model/TopLevelItemDescriptor.java
Expand Up @@ -40,6 +40,7 @@
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import java.io.StringWriter;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
Expand Down Expand Up @@ -157,7 +158,7 @@ public String getDescription() {
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 {
Expand Down

0 comments on commit 5584229

Please sign in to comment.