luci-proto-modemmanager: Added logging level option and debugmode

Merge github.com:valexi7/luci PR #4328

Signed-off-by: Paul Donald <newtwen@gmail.com>
Signed-off-by: valexi7 <44439515+valexi7@users.noreply.github.com>
(cherry picked from commit 1731fe12b5)
This commit is contained in:
Paul Donald 2023-12-04 01:16:15 +01:00
parent d3df39fdc4
commit b62adc4756

View File

@ -135,5 +135,17 @@ return network.registerProtocol('modemmanager', {
o = s.taboption('general', form.Value, 'signalrate', _('Signal Refresh Rate'), _("In seconds"));
o.datatype = 'uinteger';
s.taboption('general', form.Value, 'metric', _('Gateway metric'));
s.taboption('advanced', form.Flag, 'debugmode', _('Enable Debugmode'));
o = s.taboption('advanced', form.ListValue, 'loglevel', _('Log output level'));
o.value('ERR', _('Error'))
o.value('WARN', _('Warning'));
o.value('INFO', _('Info'));
o.value('DEBUG', _('Debug'));
o.default = 'ERR';
}
});