Make formatting more consistent
This commit is contained in:
parent
ee88dc4f3d
commit
2946de94f6
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@ from c3nav.mapdata.utils.cache import CachePackage
|
|||
from c3nav.mapdata.utils.tiles import (build_access_cache_key, build_base_cache_key, build_tile_etag, get_tile_bounds,
|
||||
parse_tile_access_cookie)
|
||||
|
||||
loglevel = logging.DEBUG if os.environ.get('C3NAV_DEBUG') else os.environ.get("LOGLEVEL","INFO")
|
||||
loglevel = logging.DEBUG if os.environ.get('C3NAV_DEBUG') else os.environ.get('LOGLEVEL', 'INFO')
|
||||
|
||||
logging.basicConfig(level=loglevel,
|
||||
format='[%(asctime)s] [%(process)s] [%(levelname)s] %(name)s: %(message)s',
|
||||
|
@ -28,6 +28,7 @@ logger = logging.getLogger('c3nav')
|
|||
if os.environ.get('C3NAV_LOGFILE'):
|
||||
logging.basicConfig(filename=os.environ['C3NAV_LOGFILE'])
|
||||
|
||||
|
||||
class TileServer:
|
||||
def __init__(self):
|
||||
self.path_regex = re.compile(r'^/(\d+)/(-?\d+)/(-?\d+)/(-?\d+).png$')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue