Skip to content

Commit

Permalink
add support for a logger function in errprinter
Browse files Browse the repository at this point in the history
* this enables other software to monkey patch the logger function to capture dronekit output and exceptions
  • Loading branch information
Will Silva committed Nov 10, 2016
1 parent 51e9fe9 commit 1824ade
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dronekit/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
def errprinter(*args):
print(*args, file=sys.stderr)
sys.stderr.flush()
logger(*args)

def logger(*args):
pass

0 comments on commit 1824ade

Please sign in to comment.