forked from Pbartek/pyobd-pi
-
Notifications
You must be signed in to change notification settings - Fork 371
Debug
Brendan Whitfield edited this page Feb 7, 2015
·
4 revisions
python-OBD also contains a debug object that receives status messages and errors. Console printing is disabled by default, but can be enabled manually. A custom debug handler can also be set.
import obd
obd.debug.console = True
# AND / OR
def log(msg):
print msg
obd.debug.handler = log