mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-22 18:53:52 +08:00
openpilot v0.9.8 release
date: 2025-03-15T21:10:51 master commit: fb7b9c0f9420d228f03362970ebcfb7237095cf3
This commit is contained in:
committed by
Adeeb Shihadeh
parent
d64fb1838d
commit
dd778596b7
11
panda/python/utils.py
Normal file
11
panda/python/utils.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import os
|
||||
import logging
|
||||
|
||||
# set up logging
|
||||
LOGLEVEL = os.environ.get('LOGLEVEL', 'INFO').upper()
|
||||
logger = logging.getLogger('panda')
|
||||
logger.setLevel(LOGLEVEL)
|
||||
|
||||
handler = logging.StreamHandler()
|
||||
handler.setFormatter(logging.Formatter('%(message)s'))
|
||||
logger.addHandler(handler)
|
||||
Reference in New Issue
Block a user