forked from Pbartek/pyobd-pi
-
Notifications
You must be signed in to change notification settings - Fork 378
Debug
brendanwhitfield edited this page Nov 26, 2014
·
4 revisions
python-OBD also contains a debug object that can be used to print 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