Skip to content

Commit

Permalink
Issue #5872 - DynamicMBean for JettyLoggerFactory
Browse files Browse the repository at this point in the history
+ Fixing typo in operation names

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
  • Loading branch information
joakime committed Jan 22, 2021
1 parent 5f9ea78 commit 81c2c23
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ public void testJMX() throws Exception

// Setting the parent level should propagate to the children.
parent.setLevel(JettyLevel.DEBUG);
operationName = "getLoggerName";
operationName = "getLoggerLevel";
signature = new String[]{String.class.getName()};
params = new Object[]{child.getName()};
String levelName = (String)mbeanServer.invoke(objectName, operationName, params, signature);
assertEquals(parent.getLevel().toString(), levelName);

// Setting the level via JMX affects the logger.
operationName = "setLoggerName";
operationName = "setLoggerLevel";
signature = new String[]{String.class.getName(), String.class.getName()};
params = new Object[]{child.getName(), "INFO"};
boolean result = (boolean)mbeanServer.invoke(objectName, operationName, params, signature);
Expand Down

0 comments on commit 81c2c23

Please sign in to comment.