Permalink
Browse files

Fixing typo's and removing if per comment on PR.

Working on unit tests next
  • Loading branch information...
1 parent 4f40725 commit 4d5f604ae59f27f912b71fc45e5bc0caf6c74e3d ethankhall committed Aug 8, 2013
Showing with 7 additions and 8 deletions.
  1. +4 −4 README.md
  2. +3 −4 logcatcolor/profile.py
View
@@ -122,7 +122,7 @@ constructor. This is a list of all the currently supported named arguments:
also assign custom colors to each tag.
Valid tag colors: `RED`, `GREEN`, `YELLOW`, `BLUE`, `MAGENTA`, `CYAN`, `WHITE`
* `wrap`: Whether or not to wrap the message column. Default is `True`.
-* `packages`: An array contains the packages that you want to filter on.
+* `packages`: An array containing the packages that you want to filter on.
this will be applied in addition to the filters.
Here is an extended example:
@@ -219,10 +219,10 @@ An example of a function filter:
### Package Filters
-Then you only care about a few (or one) application this will pass all
-massages to you by that application.
+When you only care about a few (or one) application this will pass all
+messages to you by that application.
-*Note*: This will require the application's startup message to accessable
+*Note*: This will require the application's startup message to be accessible
via the current logback trace. The best bet it to start logcat-color then
start the app.
@@ -86,10 +86,9 @@ def process_new_pid(self, data):
string = data.get('message')
if string and string.startswith('Start proc'):
for package in self.package_search:
- if string.startswith(self.package_search[package][0]):
- match = self.package_search[package][1].search(string)
- if match:
- self.pid_map[package] = match.group(1)
+ match = self.package_search[package][1].search(string)
+ if match:
+ self.pid_map[package] = match.group(1)
def include(self, data):
if not data:

0 comments on commit 4d5f604

Please sign in to comment.