# Disable xorm logging in v1.21+

**URL:** <https://forum.gitea.com/t/disable-xorm-logging-in-v1-21/12082>\
**Category:** Install/Maintain/Configure\
**Created:** [May 6, 2026, 3:01pm UTC](https://forum.gitea.com/t/disable-xorm-logging-in-v1-21/12082 "2026-05-06T15:01:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ammaratef45](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ammaratef45](https://forum.gitea.com/u/ammaratef45)\
**Post date:** [May 6, 2026, 3:01pm UTC](https://forum.gitea.com/t/disable-xorm-logging-in-v1-21/12082/1 "2026-05-06T15:01:09Z")

</div>

Hi, I’m an admin of an instance that has this warning:

```auto
Deprecation: config option `[log].ENABLE_XORM_LOG` presents, please use `[log].logger.xorm.MODE` instead because this fallback will be/has been removed in 1.21

```

Because I don’t like warning I want this to go away without changing how the instance is setup, the current value is `ENABLE_XORM_LOG=false` but it’s not clear from the documentation what value of `logger.xorm.MODE` equates that, my guess would be omitting the new config (`logger.xorm.MODE`) altogether and having `LOG_SQL=false`(default) is enough, am I getting that correct? documentation is not clear enough for me to be sure

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [May 11, 2026, 5:46pm UTC](https://forum.gitea.com/t/disable-xorm-logging-in-v1-21/12082/2 "2026-05-11T17:46:12Z")

</div>

```auto
;; Either “console”, “file” or “conn”, default is “console”

;; Use comma to separate multiple modes, e.g. “console, file”

[log]
logger.xorm.MODE = console

```

```auto

```

---

<div class="post-metadata">

**Author:** ![ammaratef45](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ammaratef45](https://forum.gitea.com/u/ammaratef45)\
**Post date:** [May 11, 2026, 10:40pm UTC](https://forum.gitea.com/t/disable-xorm-logging-in-v1-21/12082/3 "2026-05-11T22:40:01Z")

</div>

@lunny it might be a formatting issue but I only see a comment of MODE options and an empty comment after

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [May 14, 2026, 8:38pm UTC](https://forum.gitea.com/t/disable-xorm-logging-in-v1-21/12082/4 "2026-05-14T20:38:50Z")

</div>

Updated my comment above.

---

<div class="post-metadata">

**Author:** ![ammaratef45](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ammaratef45](https://forum.gitea.com/u/ammaratef45)\
**Post date:** [May 19, 2026, 3:16am UTC](https://forum.gitea.com/t/disable-xorm-logging-in-v1-21/12082/5 "2026-05-19T03:16:45Z")

</div>

I don’t understand how `logger.xorm.MODE = console` would be same as writing `ENABLE_XORM_LOG=false` if that’s the case (assuming I understood correctly)
