diff options
author | Paul Donald <newtwen@gmail.com> | 2023-12-04 01:16:15 +0100 |
---|---|---|
committer | Paul Donald <newtwen@gmail.com> | 2023-12-04 01:20:46 +0100 |
commit | 1731fe12b512e10b9c061114d348cd4872422c7a (patch) | |
tree | ffa5e1bf93056bdc7bc1645cabfdadd206c431fe /protocols/luci-proto-modemmanager/htdocs/luci-static | |
parent | 1953553d5439bad9f675f48ecd4c827b81586c6f (diff) | |
parent | 718851fb7dcf988cccfee9046b3eda77a407c1f5 (diff) |
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>
Diffstat (limited to 'protocols/luci-proto-modemmanager/htdocs/luci-static')
-rw-r--r-- | protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js b/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js index e3d98d75ef..b13dd310c7 100644 --- a/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js +++ b/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js @@ -145,5 +145,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'; + } }); |