mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Don't exclude anything from logcat unless filters are given.
This commit is contained in:
@@ -64,11 +64,13 @@ module.exports = syrup.serial()
|
||||
if (plugin.isRunning()) {
|
||||
activeLogcat
|
||||
.resetFilters()
|
||||
.excludeAll()
|
||||
|
||||
filters.forEach(function(filter) {
|
||||
activeLogcat.include(filter.tag, filter.priority)
|
||||
})
|
||||
if (filters.length) {
|
||||
activeLogcat.excludeAll()
|
||||
filters.forEach(function(filter) {
|
||||
activeLogcat.include(filter.tag, filter.priority)
|
||||
})
|
||||
}
|
||||
}
|
||||
else {
|
||||
throw new Error('Logcat is not running')
|
||||
|
||||
Reference in New Issue
Block a user