Skip to content

Commit

Permalink
moved print to stderr to logger function
Browse files Browse the repository at this point in the history
* monkey patching logger will replace the print to stderr functionality instead of supplement it
  • Loading branch information
wsilva32 committed Nov 10, 2016
1 parent 1824ade commit 44cccee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dronekit/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@


def errprinter(*args):
print(*args, file=sys.stderr)
sys.stderr.flush()
logger(*args)

def logger(*args):
pass
print(*args, file=sys.stderr)
sys.stderr.flush()

0 comments on commit 44cccee

Please sign in to comment.