Skip to content

Commit

Permalink
Set LOG_LEVEL environment variable to set log level (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezward authored Apr 4, 2022
1 parent 14db8a8 commit d0ad870
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion donkeycar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import os
import sys
from pyfiglet import Figlet
import logging
from pkg_resources import get_distribution

__version__ = get_distribution('donkeycar').version

logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=os.environ.get('LOGLEVEL', 'INFO').upper())

f = Figlet(font='speed')


Expand Down

0 comments on commit d0ad870

Please sign in to comment.