# wired behavior after update from 3.2.25 to 4.2.14

**URL:** <https://forum.djangoproject.com/t/wired-behavior-after-update-from-3-2-25-to-4-2-14/33155>\
**Category:** Mystery Errors\
**Created:** [July 21, 2024, 7:29am UTC](https://forum.djangoproject.com/t/wired-behavior-after-update-from-3-2-25-to-4-2-14/33155 "2024-07-21T07:29:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oreitan](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/oreitan/32/22751_2.png) [@oreitan](https://forum.djangoproject.com/u/oreitan)\
**Post date:** [July 21, 2024, 7:29am UTC](https://forum.djangoproject.com/t/wired-behavior-after-update-from-3-2-25-to-4-2-14/33155/1 "2024-07-21T07:29:13Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![abhijeetmote](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/abhijeetmote/32/33345_2.png) [@abhijeetmote](https://forum.djangoproject.com/u/abhijeetmote)\
**Post date:** [September 29, 2026, 3:42am UTC](https://forum.djangoproject.com/t/wired-behavior-after-update-from-3-2-25-to-4-2-14/33155/2 "2026-09-29T03:42:05Z")

</div>

I don’t think the output shows an error from `logger.info()`—the message prints, and Django completes its system checks. It stops before the usual “Starting development server” message, though, so it’s hard to tell what happens next.

Since the message appears twice, try:

```auto
python manage.py runserver --noreload

```

The autoreloader may be running your startup code more than once. I’d also move the scheduler startup out of `ready()` and run it in a seperate worker or management command. If it still hangs with `--noreload`, try keeping the log line but temporarily disabling the rest of `scheduler_init()`.
