Skip to content

Commit

Permalink
Remove unused imports and logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulware committed Jan 30, 2024
1 parent c7f040e commit db2e525
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gunicorn/config.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import importlib
import logging
import os
import sys
from multiprocessing import cpu_count



bind = ":8000"
workers = 1
worker_class = "gthread"
threads = cpu_count()

loglevel = os.environ.get("GUNICORN_LOG_LEVEL", "info")
logger = logging.getLogger(__name__)


def _modify_path():
"""Ensure Django project is on sys.path."""
Expand All @@ -28,8 +25,10 @@ def post_worker_init(worker):
_modify_path()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sensor.settings")
import django

django.setup()
from scheduler import scheduler

scheduler.thread.start()


Expand Down

0 comments on commit db2e525

Please sign in to comment.