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 00:20:46 +0000 (01:20 +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>
1  2 
protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js

index e3d98d75efde7d0684398c74fa9d885e00609b93,ad8cc1484aa371bec0c62bc6846fe4338a56bc33..b13dd310c7c672bb56f6a8bfd728c38d85a0ef36
@@@ -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';
+               
        }
  });