# WP-Discourse: How to change de logs directory, or disable it completely?

**URL:** https://meta.discourse.org/t/wp-discourse-how-to-change-de-logs-directory-or-disable-it-completely/249812
**Category:** WordPress
**Created:** [December 24, 2022, 8:35pm UTC](https://meta.discourse.org/t/wp-discourse-how-to-change-de-logs-directory-or-disable-it-completely/249812 "2022-12-24T20:35:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Thiago\_Mobilon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thiago_mobilon/32/177756_2.png) [@Thiago\_Mobilon](https://meta.discourse.org/u/Thiago_Mobilon)
#### Post date: [December 24, 2022, 8:35pm UTC](https://meta.discourse.org/t/wp-discourse-how-to-change-de-logs-directory-or-disable-it-completely/249812/1 "2022-12-24T20:35:18Z")

</div>

Our `uploads` folder is in a S3 bucket. The logging feature from [Wp Discourse](https://github.com/discourse/wp-discourse) is adding a lot of load to the server, due to the constant writes to the uploads folder.

I need to completely disable the [WP Discourse](https://github.com/discourse/wp-discourse) logs, or at least change the path to the log files directory.

Is there a way to customize that with a hook, or maybe defining a variable in wp-config.php?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 25, 2022, 11:39am UTC](https://meta.discourse.org/t/wp-discourse-how-to-change-de-logs-directory-or-disable-it-completely/249812/2 "2022-12-25T11:39:51Z")

</div>

You’re talking about the logs created by WordPress? Or discourse?

---

<div class="post-metadata">

### Author: ![Thiago\_Mobilon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thiago_mobilon/32/177756_2.png) [@Thiago\_Mobilon](https://meta.discourse.org/u/Thiago_Mobilon)
#### Post date: [December 25, 2022, 3:09pm UTC](https://meta.discourse.org/t/wp-discourse-how-to-change-de-logs-directory-or-disable-it-completely/249812/3 "2022-12-25T15:09:54Z")

</div>

Discourse.

I’ve already disabled all the specific log options in the plugin settings, but it still does a lot o R/W in the directory,

 ![Screenshot 2022-12-25 at 12.09.14](https://global.discourse-cdn.com/meta/original/4X/8/7/9/8797e36e25254a30ad1794c16fd03f8e91ad06a4.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 25, 2022, 3:46pm UTC](https://meta.discourse.org/t/wp-discourse-how-to-change-de-logs-directory-or-disable-it-completely/249812/4 "2022-12-25T15:46:52Z")

</div>

> [@Thiago\_Mobilon](#):
>
> Discourse.

You mean this, right?

> **[WP Discourse](https://wordpress.org/plugins/wp-discourse/)**
>
> This plugin allows you to use Discourse as a community engine for your WordPress website. The plugin is not a substitute for Disqus type commenting sy …

wp-discourse is a WordPress plugin.

Those are WordPress logs. So if you want to change them you should do something lke `https://www.google.com/search?q=wordpress+limit+log+size&oq=wordpress+limit+log+size`.

There could be somewhere here who knows, but that search, especially on Christmas, is likely going to yield faster results.

---

<div class="post-metadata">

### Author: ![Thiago\_Mobilon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thiago_mobilon/32/177756_2.png) [@Thiago\_Mobilon](https://meta.discourse.org/u/Thiago_Mobilon)
#### Post date: [December 26, 2022, 5:13am UTC](https://meta.discourse.org/t/wp-discourse-how-to-change-de-logs-directory-or-disable-it-completely/249812/5 "2022-12-26T05:13:05Z")

</div>

Hi Jay,

Sorry, i meant wp-discourse.

I don’t want to limit the size of the log. I need to change the directory that the plugin uses to save the log files, or completely disable the logging feature.

As i mentioned, our uploads folder is in a S3 bucket, mounted using Rclone. [WP Discourse](https://github.com/discourse/wp-discourse) makes constant writes in this “logs-metafile.txt” file, and this increases the server load a lot.

I checked the log generator file from [WP Discourse](https://github.com/discourse/wp-discourse), and it fetches the `wp_uploads_dir` directly, so i don’t think there’s a official way to change the directory, right?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [December 26, 2022, 2:40pm UTC](https://meta.discourse.org/t/wp-discourse-how-to-change-de-logs-directory-or-disable-it-completely/249812/6 "2022-12-26T14:40:54Z")

</div>

Thanks for this report @Thiago_Mobilon.

We’ll be making a change to address this in the next release of the [WP Discourse](https://github.com/discourse/wp-discourse) plugin.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [December 27, 2022, 1:01pm UTC](https://meta.discourse.org/t/wp-discourse-how-to-change-de-logs-directory-or-disable-it-completely/249812/7 "2022-12-27T13:01:47Z")

</div>

Just a note that the next release of the plugin `2.4.8` includes:

- a fix for the specific issue @Thiago_Mobilon reported; and
- a setting to disable logging entirely

The fix should address the issue you’re experiencing @Thiago_Mobilon so you shouldn’t need to disable logging, but you’re welcome to of course.

The release is currently up for review. When this PR is merged it’ll be released to [wordpress.org](http://wordpress.org).

[https://github.com/discourse/wp-discourse/pull/472](https://github.com/discourse/wp-discourse/pull/472)
