mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Removed line counter for logs.
This commit is contained in:
parent
eb1baa4641
commit
97e106760f
4 changed files with 16 additions and 11 deletions
|
@ -53,8 +53,8 @@ module.exports = function logcatTableDirective($rootScope, $timeout, LogcatServi
|
|||
|
||||
newRow.classList.add('log-' + data.priorityLabel)
|
||||
|
||||
newRow.insertCell(-1)
|
||||
.appendChild(document.createTextNode(LogcatService.numberOfEntries))
|
||||
//newRow.insertCell(-1)
|
||||
// .appendChild(document.createTextNode(LogcatService.numberOfEntries))
|
||||
//newRow.insertCell(-1)
|
||||
// .appendChild(document.createTextNode(data.deviceLabel))
|
||||
newRow.insertCell(-1)
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
/*color: rgb(48, 57, 66);*/
|
||||
}
|
||||
|
||||
.stf-logcat-table tr td:first-child {
|
||||
background: #f3f3f3;
|
||||
color: #800000;
|
||||
text-align: right;
|
||||
}
|
||||
/*.stf-logcat-table tr td:first-child {*/
|
||||
/*background: #f3f3f3;*/
|
||||
/*color: #800000;*/
|
||||
/*text-align: right;*/
|
||||
/*}*/
|
||||
|
||||
/**
|
||||
Logging colors
|
||||
|
|
|
@ -7,6 +7,13 @@ module.exports = function LogcatServiceFactory(socket, DeviceService, FilterStri
|
|||
service.maxEntriesBuffer = 5000
|
||||
service.numberOfEntries = 0
|
||||
|
||||
service.serverFilters = [
|
||||
{
|
||||
tag: '',
|
||||
priority: 2
|
||||
}
|
||||
]
|
||||
|
||||
service.filters = {
|
||||
numberOfEntries: 0,
|
||||
entries: [
|
||||
|
@ -24,6 +31,7 @@ module.exports = function LogcatServiceFactory(socket, DeviceService, FilterStri
|
|||
},
|
||||
set: function (value) {
|
||||
_filters[prop] = value ? value : null
|
||||
service.serverFilters[0][prop] = value ? value : undefined
|
||||
service.filters.filterLines()
|
||||
}
|
||||
})
|
||||
|
@ -85,7 +93,6 @@ module.exports = function LogcatServiceFactory(socket, DeviceService, FilterStri
|
|||
|
||||
socket.on('logcat.entry', function (rawData) {
|
||||
service.numberOfEntries++
|
||||
|
||||
service.entries.push(enhanceEntry(rawData))
|
||||
|
||||
if (typeof(service.addEntryListener) === 'function') {
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module.exports = function LogsCtrl($scope, LogcatService) {
|
||||
|
||||
var filters = []
|
||||
|
||||
$scope.logEntries = LogcatService.entries
|
||||
|
||||
$scope.started = LogcatService.started
|
||||
|
@ -14,7 +12,7 @@ module.exports = function LogsCtrl($scope, LogcatService) {
|
|||
if (newValue !== oldValue) {
|
||||
LogcatService.started = newValue
|
||||
if (newValue) {
|
||||
$scope.control.startLogcat(filters).then(function (result) {
|
||||
$scope.control.startLogcat([]).then(function (result) {
|
||||
})
|
||||
} else {
|
||||
$scope.control.stopLogcat()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue