# Setting LMS and LMS Worker debug level

**URL:** <https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631>\
**Category:** Site Operations Help\
**Tags:** tutor, sumac\
**Created:** [July 29, 2025, 1:37pm UTC](https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631 "2025-07-29T13:37:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tech\_mil](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@tech\_mil](https://discuss.openedx.org/u/tech_mil)\
**Post date:** [July 29, 2025, 1:37pm UTC](https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631/1 "2025-07-29T13:37:18Z")

</div>

Hello,

We are trying to set the LMS debug level to warning or greater. Found an older forum post but it doesn’t seem to work for us, not sure if this is deprecated or not. Has anyone tried to do this recently?

> **[Set logs to DEBUG in lms or cms](https://discuss.overhang.io/t/set-logs-to-debug-in-lms-or-cms/259/2)**
>
> Good catch! The level of the “local” logger is (mistakenly) undefined in Tutor: https://github.com/overhangio/tutor/blob/master/tutor/templates/apps/openedx/settings/partials/common\_all.py#L27 LOGGING\["handlers"\]\["local"\] = { "class":...

Cheers!

---

<div class="post-metadata">

**Author:** ![sarina](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sarina/32/2308_2.png) [@sarina](https://discuss.openedx.org/u/sarina)\
**Post date:** [July 31, 2025, 3:47pm UTC](https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631/2 "2025-07-31T15:47:59Z")

</div>

Hi @tech_mil could you specify what version of Tutor you’re running, and any other detail that might be relevant? The post I see says

> these env.json files are going to change a lot in the next Open edX release (Juniper)

and we’re on Teak, so I wouldn’t be too surprised if these instructions no longer worked 😅

---

<div class="post-metadata">

**Author:** ![joel.edwards](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/joel.edwards/32/3193_2.png) [@joel.edwards](https://discuss.openedx.org/u/joel.edwards)\
**Post date:** [August 1, 2025, 8:34am UTC](https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631/3 "2025-08-01T08:34:37Z")

</div>

I tried playing around with configs but wasn’t able to effect any real observable change. Granted I’m not particularly good at it, so I could have just been an idiot…

I tried tweaking settings:  
here: [edx-platform/openedx/core/lib/logsettings.py at master · openedx/edx-platform · GitHub](https://github.com/openedx/edx-platform/blob/master/openedx/core/lib/logsettings.py#L13)  
and here: [tutor/tutor/templates/apps/openedx/settings/partials/common\_all.py at release · overhangio/tutor · GitHub](https://github.com/overhangio/tutor/blob/release/tutor/templates/apps/openedx/settings/partials/common_all.py#L136-L150)

---

<div class="post-metadata">

**Author:** ![tech\_mil](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@tech\_mil](https://discuss.openedx.org/u/tech_mil)\
**Post date:** [August 1, 2025, 8:43am UTC](https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631/4 "2025-08-01T08:43:19Z")

</div>

Hello @Sarina, thank you for the response. My apologies for missing that detail! We are using tutor v19.0.2

---

<div class="post-metadata">

**Author:** ![tech\_mil](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@tech\_mil](https://discuss.openedx.org/u/tech_mil)\
**Post date:** [August 1, 2025, 8:45am UTC](https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631/5 "2025-08-01T08:45:01Z")

</div>

Hi @joel.edwards , thanks for the response and for trying it out! We have a look around these configs and see if we can spot anything else.

---

<div class="post-metadata">

**Author:** ![sarina](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sarina/32/2308_2.png) [@sarina](https://discuss.openedx.org/u/sarina)\
**Post date:** [August 1, 2025, 1:37pm UTC](https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631/6 "2025-08-01T13:37:20Z")

</div>

I’m going to tag [@tutor-maintainers](https://discuss.openedx.org/groups/tutor-maintainers) to see if they have an idea about how to do this in Tutor v19

---

<div class="post-metadata">

**Author:** ![MoisesGonzalezS](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/moisesgonzalezs/32/1996_2.png) [@MoisesGonzalezS](https://discuss.openedx.org/u/MoisesGonzalezS)\
**Post date:** [August 4, 2025, 11:03pm UTC](https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631/7 "2025-08-04T23:03:32Z")

</div>

You need to configure both the logger and the handler to DEBUG level. Also, keep in mind that the “local” handler sends the log to a log file in `"$(tutor config printroot)/data/lms/logs/all.log"` or `/openedx/data/logs/all.log` inside the container. The handler for stdout is `console`

Adding this settings to your production.py file should work:

```python
LOGGING["loggers"][""]["level"] = "DEBUG"
LOGGING["handlers"]["console"]["level"] = "DEBUG"

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [November 2, 2025, 11:04pm UTC](https://discuss.openedx.org/t/setting-lms-and-lms-worker-debug-level/16631/8 "2025-11-02T23:04:14Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
