Wizard: Signal bwlimiter after config change

Remove debug log in form handler
This commit is contained in:
zzz
2018-11-15 17:41:57 +00:00
parent 0369d321d3
commit 54a1609760

View File

@ -28,10 +28,6 @@ public class WizardHandler extends FormHandler {
@Override @Override
protected void processForm() { protected void processForm() {
{
String page = getJettyString("page");
System.out.println("Action: " + _action + " page: " + page);
}
if (_action == null) if (_action == null)
return; return;
if (getJettyString("cancelbw") != null) { if (getJettyString("cancelbw") != null) {
@ -55,7 +51,9 @@ System.out.println("Action: " + _action + " page: " + page);
boolean updated = updateRates(changes); boolean updated = updateRates(changes);
if (updated) { if (updated) {
boolean saved = _context.router().saveConfig(changes, null); boolean saved = _context.router().saveConfig(changes, null);
if (saved) // needed? // this has to be after the save
_context.bandwidthLimiter().reinitialize();
if (saved)
addFormNotice(_t("Configuration saved successfully")); addFormNotice(_t("Configuration saved successfully"));
else else
addFormError(_t("Error saving the configuration (applied but not saved) - please see the error logs")); addFormError(_t("Error saving the configuration (applied but not saved) - please see the error logs"));