mirror of
https://github.com/imcarlost/pidcat-repl.git
synced 2026-08-08 23:17:43 -04:00
Code style tweaks.
This commit is contained in:
@@ -40,7 +40,6 @@ parser.add_argument('-s', '--serial', dest='device_serial', help='Device serial
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
min_level = LOG_LEVELS_MAP[args.min_level]
|
min_level = LOG_LEVELS_MAP[args.min_level]
|
||||||
serial=args.device_serial
|
|
||||||
|
|
||||||
header_size = args.tag_width + 1 + 3 + 1 # space, level, space
|
header_size = args.tag_width + 1 + 3 + 1 # space, level, space
|
||||||
|
|
||||||
@@ -135,10 +134,11 @@ PID_DEATH = re.compile(r'^Process ([a-zA-Z0-9._]+) \(pid (\d+)\) has died.?\r$')
|
|||||||
LOG_LINE = re.compile(r'^([A-Z])/([^\(]+)\( *(\d+)\): (.*?)\r?$')
|
LOG_LINE = re.compile(r'^([A-Z])/([^\(]+)\( *(\d+)\): (.*?)\r?$')
|
||||||
BUG_LINE = re.compile(r'^(?!.*(nativeGetEnabledTags)).*$')
|
BUG_LINE = re.compile(r'^(?!.*(nativeGetEnabledTags)).*$')
|
||||||
|
|
||||||
adb_command = ['adb', 'logcat']
|
adb_command = ['adb']
|
||||||
if serial != None:
|
if args.device_serial:
|
||||||
adb_command.insert(1, '-s')
|
adb_command.extend(['-s', args.device_serial])
|
||||||
adb_command.insert(2, serial)
|
adb_command.append('logcat')
|
||||||
|
|
||||||
adb = subprocess.Popen(adb_command, stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
adb = subprocess.Popen(adb_command, stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
||||||
pids = set()
|
pids = set()
|
||||||
last_tag = None
|
last_tag = None
|
||||||
|
|||||||
Reference in New Issue
Block a user