Skip to content

Commit 1824ade

Browse files
author
Will Silva
committed
add support for a logger function in errprinter
* this enables other software to monkey patch the logger function to capture dronekit output and exceptions
1 parent 51e9fe9 commit 1824ade

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dronekit/util.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
def errprinter(*args):
66
print(*args, file=sys.stderr)
77
sys.stderr.flush()
8+
logger(*args)
9+
10+
def logger(*args):
11+
pass

0 commit comments

Comments
 (0)