From 092ffc186925aeaf002e484a1b3f143edbf9bd60 Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Mon, 29 Sep 2014 21:12:51 -0700 Subject: [PATCH] Revert "Print line if we have not seen any pids created yet" This reverts commit cd01ccf7202c40969f509a9bea188c8d01bb95d9. --- pidcat.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pidcat.py b/pidcat.py index 8e83a8c..d4caf00 100755 --- a/pidcat.py +++ b/pidcat.py @@ -177,7 +177,6 @@ if sys.stdin.isatty(): else: adb = FakeStdinProcess() pids = set() -seen_pids = False last_tag = None app_pid = None @@ -236,7 +235,6 @@ while adb.poll() is None: if match_packages(line_package): pids.add(line_pid) - seen_pids = True app_pid = line_pid @@ -266,7 +264,7 @@ while adb.poll() is None: message = message.lstrip() owner = app_pid - if seen_pids and owner not in pids: + if owner not in pids: continue if level in LOG_LEVELS_MAP and LOG_LEVELS_MAP[level] < min_level: continue