mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 20:53:24 +02:00
Add LogcatApplyFiltersMessage.
This commit is contained in:
@@ -401,6 +401,12 @@ module.exports = function(options) {
|
||||
log.error('keyPress failed', err.stack)
|
||||
})
|
||||
})
|
||||
.on(wire.LogcatApplyFiltersMessage, function(channel, message) {
|
||||
services.logcat.resetFilters().excludeAll()
|
||||
message.filters.forEach(function(filter) {
|
||||
services.logcat.include(filter.tag, filter.priority)
|
||||
})
|
||||
})
|
||||
.on(wire.ShellCommandMessage, function(channel, message) {
|
||||
log.info('Running shell command "%s"', message.command.join(' '))
|
||||
adb.shellAsync(options.serial, message.command)
|
||||
|
||||
Reference in New Issue
Block a user