luci-proto-modemmanager: Added logging level option and debugmode
authorPaul Donald <newtwen@gmail.com>
Mon, 4 Dec 2023 00:16:15 +0000 (01:16 +0100)
committerPaul Donald <newtwen@gmail.com>
Mon, 4 Dec 2023 22:14:46 +0000 (23:14 +0100)
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 1731fe12b512e10b9c061114d348cd4872422c7a)

protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js

index 501f759646afb44553cd33436aacf6f2dbf76a4a..49ca8239c69b7b9cc20840d3e53298d1ac9eebfa 100644 (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';
+               
        }
 });