luci2: major changes to RPC implementation
[project/luci2/ui.git] / luci2 / htdocs / luci2 / view / status.dmesg.js
1 L.ui.view.extend({
2 title: L.tr('Kernel Log'),
3 refresh: 5000,
4 execute: function() {
5 return L.system.getKernelLog().then(function(log) {
6 var ta = document.getElementById('syslog');
7 var lines = log.replace(/\n+$/, '').split(/\n/);
8
9 ta.rows = lines.length;
10 ta.value = lines.reverse().join("\n");
11 });
12 }
13 });