Merge pull request #4329 from TDT-AG/pr/20200803-luci-app-ttyd

luci-app-ttyd: add debug value list
This commit is contained in:
Florian Eckert 2020-08-04 14:19:45 +02:00 committed by GitHub
commit 9bc5865339
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,8 +70,12 @@ return view.extend({
o = s.option(form.Value, 'ssl_ca', _('SSL ca'), _('SSL CA file path for client certificate verification')); o = s.option(form.Value, 'ssl_ca', _('SSL ca'), _('SSL CA file path for client certificate verification'));
o.depends('ssl', '1'); o.depends('ssl', '1');
o = s.option(form.Value, 'debug', _('Debug'), _('Set log level (default: 7)')); o = s.option(form.ListValue, 'debug', _('Debug'), _('Set log level (default: 7)'));
o.placeholder = '7'; o.value('1', _('Error'));
o.value('3', _('Warning'));
o.value('7', _('Notice'));
o.value('15', _('Info'));
o.default = '7';
s.option(form.Value, 'command', _('Command')); s.option(form.Value, 'command', _('Command'));