9 L
.resolveDefault(fs
.stat('/sbin/logread'), null),
10 L
.resolveDefault(fs
.stat('/usr/sbin/logread'), null)
13 render: function(stat
) {
14 var logger
= stat
[0] ? stat
[0].path
: stat
[1] ? stat
[1].path
: null;
16 return L
.resolveDefault(fs
.exec_direct(logger
, ['-e', 'adblock-'])).then(function(res
) {
17 var log
= document
.getElementById("logfile");
19 log
.value
= res
.trim();
21 log
.value
= _('No adblock related logs yet!');
23 log
.scrollTop
= log
.scrollHeight
;
26 return E('div', { class: 'cbi-map' },
27 E('div', { class: 'cbi-section' }, [
28 E('div', { class: 'cbi-section-descr' }, _('The syslog output, pre-filtered for adblock related messages only.')),
31 'style': 'width: 100% !important; padding: 5px; font-family: monospace',
32 'readonly': 'readonly',
38 handleSaveApply
: null,