Tidying up log, correct HTTP status for error pages.

This commit is contained in:
Leo Vasanko
2023-11-16 17:10:18 -08:00
parent 5285cb2fb5
commit f8a9197474
2 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
import asyncio
import datetime
import logging
import mimetypes
import threading
from concurrent.futures import ThreadPoolExecutor
@@ -33,7 +32,6 @@ app.exception(Exception)(handle_sanic_exception)
@app.before_server_start
async def main_start(app, loop):
config.load_config()
logger.setLevel(logging.INFO)
app.ctx.threadexec = ThreadPoolExecutor(
max_workers=8, thread_name_prefix="cista-ioworker"
)