Index: common/src/main/java/org/glassfish/admingui/common/handlers/LoggingHandlers.java =================================================================== --- common/src/main/java/org/glassfish/admingui/common/handlers/LoggingHandlers.java (revision 52337) +++ common/src/main/java/org/glassfish/admingui/common/handlers/LoggingHandlers.java (working copy) @@ -132,12 +132,18 @@ String config = (String)handlerCtx.getInputValue("config"); Map props = new HashMap(); try{ + StringBuilder sb = new StringBuilder(); + String sep = ""; for(Map oneRow : allRows){ - props.put("id", oneRow.get("loggerName") + "=" + oneRow.get("level")); - props.put("target", config); - RestUtil.restRequest((String)GuiUtil.getSessionValue("REST_URL") + "/set-log-levels.json", + if ( !GuiUtil.isEmpty((String) oneRow.get("loggerName"))){ + sb.append(sep).append(oneRow.get("loggerName")).append("=").append(oneRow.get("level")); + sep=":"; + } + } + props.put("id", sb.toString()); + props.put("target", config); + RestUtil.restRequest((String)GuiUtil.getSessionValue("REST_URL") + "/set-log-levels.json", props, "POST", null, false, true); - } // after saving logger levels remove the deleted loggers deleteLoggers(allRows, config); }catch(Exception ex){ @@ -160,15 +166,20 @@ newLoggers.add((String)oneRow.get("loggerName")); } // delete the removed loggers - attrs = new HashMap(); + StringBuilder sb = new StringBuilder(); + String sep = ""; for (String logger : oldLoggers) { if (!newLoggers.contains(logger)) { - attrs.put("id", logger); - attrs.put("target", configName); - RestUtil.restRequest((String)GuiUtil.getSessionValue("REST_URL") + "/delete-log-levels", - attrs, "POST", null, false); + sb.append(sep).append(logger); + sep=":"; } } + if (sb.length() > 0){ + attrs = new HashMap(); + attrs.put("id", sb.toString()); + attrs.put("target", configName); + RestUtil.restRequest((String)GuiUtil.getSessionValue("REST_URL") + "/delete-log-levels", attrs, "POST", null, false); + } } @Handler(id = "saveLoggingAttributes",