From dd28e970499b4785116a7fe98530534f0dc04590 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Mon, 10 Jun 2013 13:40:03 -0400 Subject: [PATCH] 2527778d amended to display Level.localizedName but track Level.name in the form submission. --- core/src/main/java/hudson/logging/LogRecorder.java | 3 +-- .../main/resources/hudson/logging/LogRecorder/configure.jelly | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/hudson/logging/LogRecorder.java b/core/src/main/java/hudson/logging/LogRecorder.java index c3ef75c6cb..ad84fdaf2d 100644 --- a/core/src/main/java/hudson/logging/LogRecorder.java +++ b/core/src/main/java/hudson/logging/LogRecorder.java @@ -45,7 +45,6 @@ import java.io.File; import java.io.IOException; import java.util.List; import java.util.Arrays; -import java.util.Locale; import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.logging.Logger; @@ -100,7 +99,7 @@ public class LogRecorder extends AbstractModelObject implements Saveable { @DataBoundConstructor public Target(String name, String level) { - this(name,Level.parse(level.toUpperCase(Locale.ENGLISH))); + this(name,Level.parse(level)); } public Level getLevel() { diff --git a/core/src/main/resources/hudson/logging/LogRecorder/configure.jelly b/core/src/main/resources/hudson/logging/LogRecorder/configure.jelly index bc01fdde30..6ac13d9f6b 100644 --- a/core/src/main/resources/hudson/logging/LogRecorder/configure.jelly +++ b/core/src/main/resources/hudson/logging/LogRecorder/configure.jelly @@ -55,7 +55,7 @@ THE SOFTWARE.