after I update from ver 3.2.25 to 4.2.14 I can’t run my server locally with any error.
I found the line of code that ‘’ of the problem
class ApiConfig(AppConfig):
name = “api”
def ready(self):
from api.scheduler.jobs_init import scheduler_init
scheduler_init()
import logging
logger = logging.getLogger(“default_logger”)
def scheduler_init():
logger.info(“test”)
###########################
“do some logic”
###########################
when I remove the logger line the server run normally but when I start it with the logger its stop in the meddle:
2024-07-21 07:27:52,253 INFO [jobs_init.py:34] test
2024-07-21 07:27:53,912 INFO [jobs_init.py:34] test
Watching for file changes with StatReloader
Performing system checks…
/Users/test/Desktop/api/response_error_handling.py:30 - This is a test message.
System check identified no issues (0 silenced).