You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
308 B
Python
13 lines
308 B
Python
3 years ago
|
import logging
|
||
|
import os
|
||
|
|
||
|
import argh
|
||
|
|
||
|
from professor_api.main import main
|
||
|
|
||
|
LOG_FORMAT = "[%(asctime)s] %(levelname)8s %(name)s(%(module)s:%(lineno)d): %(message)s"
|
||
|
|
||
|
level = os.environ.get('WUBLOADER_LOG_LEVEL', 'INFO').upper()
|
||
|
logging.basicConfig(level=level, format=LOG_FORMAT)
|
||
|
argh.dispatch_command(main)
|