Add top docstring and log format like Etiquette.

This commit is contained in:
voussoir 2020-09-30 14:47:05 -07:00
parent fb1d5d3e6e
commit f77809e793

View file

@ -1,7 +1,16 @@
'''
This file is the gevent launcher for local / development use.
Simply run it on the command line:
python ycdl_flask_launch.py [port]
'''
import gevent.monkey; gevent.monkey.patch_all() import gevent.monkey; gevent.monkey.patch_all()
import logging import logging
logging.basicConfig() handler = logging.StreamHandler()
log_format = '{levelname}:ycdl.{module}.{funcName}: {message}'
handler.setFormatter(logging.Formatter(log_format, style='{'))
logging.getLogger().addHandler(handler)
logging.getLogger('ycdl').setLevel(logging.DEBUG) logging.getLogger('ycdl').setLevel(logging.DEBUG)
import argparse import argparse