From: Paul Donald Date: Mon, 4 Dec 2023 00:16:15 +0000 (+0100) Subject: luci-proto-modemmanager: Added logging level option and debugmode X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1731fe12b512e10b9c061114d348cd4872422c7a;p=project%2Fluci.git luci-proto-modemmanager: Added logging level option and debugmode Merge github.com:valexi7/luci PR #4328 Signed-off-by: Paul Donald Signed-off-by: valexi7 <44439515+valexi7@users.noreply.github.com> --- 1731fe12b512e10b9c061114d348cd4872422c7a diff --cc protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js index e3d98d75ef,ad8cc1484a..b13dd310c7 --- a/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js +++ b/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js @@@ -142,8 -120,19 +142,20 @@@ return network.registerProtocol('modemm o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU')); o.placeholder = dev ? (dev.getMTU() || '1500') : '1500'; o.datatype = 'max(9200)'; + + 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'; + } });