Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
fix Logger to log adb logwatach in the correct method
Browse files Browse the repository at this point in the history
  • Loading branch information
maticrivo committed May 6, 2015
1 parent 49c77f4 commit 8732508
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion magneto/utils/adb.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ def watch(self, pattern, **kwargs):
:param pattern: Regular expression pattern to perform on logcat lines
:param int min_times: Minimum times a certain pattern should appear in log
"""
Logger.debug('watching pattern "{}"'.format(pattern))
self.watch_compiled(re.compile(pattern), **kwargs)

def watch_compiled(self, pattern, min_times=1):
Logger.debug('watching pattern "{}"'.format(pattern.pattern))
self._watchers[pattern] = Future(), min_times

def assert_done(self, timeout=15, stall=None):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='magneto',
version='0.1.7',
version='0.1.8',
description='Magneto - Command your droids.',
author='EverythingMe',
author_email='automation@everything.me',
Expand Down

0 comments on commit 8732508

Please sign in to comment.